From 23de80dbe1b15d5bd3e296187317906923c5aa28 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 11 May 2023 23:33:18 +0200 Subject: [PATCH 1/5] Improve empty notifications display --- templates/user/notification/notification_div.tmpl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index b8efd2433e8c8..2abf398cb6e86 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -1,6 +1,6 @@
-

{{.locale.Tr "notification.notifications"}}

+

{{.locale.Tr "notification.notifications"}}

{{if eq (len .Notifications) 0}} - {{if eq .Status 1}} - {{.locale.Tr "notification.no_unread"}} - {{else}} - {{.locale.Tr "notification.no_read"}} - {{end}} +
+ {{svg "octicon-inbox" 48 "gt-mb-3"}} + {{if eq .Status 1}} + {{.locale.Tr "notification.no_unread"}} + {{else}} + {{.locale.Tr "notification.no_read"}} + {{end}} +
{{else}} From 2ab5a796eb0fa83113291dca25946f167d11d921 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 11 May 2023 23:39:01 +0200 Subject: [PATCH 2/5] remove useless classes --- templates/user/notification/notification_div.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index 2abf398cb6e86..7e47d1895813a 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -23,7 +23,7 @@
{{if eq (len .Notifications) 0}} -
+
{{svg "octicon-inbox" 48 "gt-mb-3"}} {{if eq .Status 1}} {{.locale.Tr "notification.no_unread"}} From 84692fce814538a527fe4e978ae96672ed643930 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 11 May 2023 23:41:49 +0200 Subject: [PATCH 3/5] slight icon size increase --- templates/user/notification/notification_div.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index 7e47d1895813a..6f065185a7dc8 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -24,7 +24,7 @@
{{if eq (len .Notifications) 0}}
- {{svg "octicon-inbox" 48 "gt-mb-3"}} + {{svg "octicon-inbox" 56 "gt-mb-4"}} {{if eq .Status 1}} {{.locale.Tr "notification.no_unread"}} {{else}} From a8f2f80eaacd07100ec12ac3226571c875cc7885 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 12 May 2023 00:13:42 +0200 Subject: [PATCH 4/5] few more tweaks --- templates/user/notification/notification_div.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index 6f065185a7dc8..3ce8c8e534601 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -1,6 +1,9 @@