diff --git a/templates/home.html b/templates/home.html
index e4c9b131..b1c9f586 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -46,9 +46,13 @@
{{ len .Comments }}
+ {{if .LastScrape.IsZero}}
+
{{T "unknown"}} |
+ {{else}}
{{.Seeders}} |
{{.Leechers}} |
{{.Completed}} |
+ {{end}}
{{.Date}} |
{{.Filesize}} |
diff --git a/templates/view.html b/templates/view.html
index b47375a5..f92af7f2 100644
--- a/templates/view.html
+++ b/templates/view.html
@@ -76,9 +76,15 @@
{{T "completed"}}
+ {{if .LastScrape.IsZero}}
+ {{T "unknown"}}
+ {{else}}
{{.Seeders}}
{{.Leechers}}
{{.Completed}}
+ {{T "last_scraped"}}
+ {{.LastScrape.Format (Ts "date_format")}}
+ {{end}}
diff --git a/translations/en-us.all.json b/translations/en-us.all.json
index 27280841..c107c82e 100644
--- a/translations/en-us.all.json
+++ b/translations/en-us.all.json
@@ -746,5 +746,13 @@
{
"id": "please_include_our_tracker",
"translation": "Please include udp://tracker.doko.moe:6969 in your trackers."
+ },
+ {
+ "id": "unknown",
+ "translation": "Unknown"
+ },
+ {
+ "id": "last_scraped",
+ "translation": "Last scraped: "
}
]
|