From c5b22ff4960471003d790dc19ccac47507f1e128 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Tue, 9 May 2017 03:53:31 +0200 Subject: [PATCH] Fixed no torrents found + translation --- templates/_badgemenu.html | 8 ++++---- templates/_user_list_torrents.html | 4 ++++ translations/en-us.all.json | 4 ++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/_badgemenu.html b/templates/_badgemenu.html index 301875ce..8dbdd136 100644 --- a/templates/_badgemenu.html +++ b/templates/_badgemenu.html @@ -8,13 +8,13 @@ {{ else }} - + {{end}} diff --git a/templates/_user_list_torrents.html b/templates/_user_list_torrents.html index ccbcd29b..d5518975 100644 --- a/templates/_user_list_torrents.html +++ b/templates/_user_list_torrents.html @@ -1,5 +1,6 @@ {{define "profile_content"}} {{with .UserProfile}} +{{ if gt (len .ListTorrents) 0 }}
@@ -44,5 +45,8 @@ + {{else}} +

{{ T "no_torrents_uploaded" }}

+{{end}} {{end}} {{end}} diff --git a/translations/en-us.all.json b/translations/en-us.all.json index 0a0bd08a..ee7a72fc 100644 --- a/translations/en-us.all.json +++ b/translations/en-us.all.json @@ -179,6 +179,10 @@ "id": "404_not_found", "translation": "404 Not Found" }, + { + "id": "no_torrents_uploaded", + "translation": "No torrents uploaded yet!" + }, { "id": "profile", "translation": "Profile"