From 8251b317f7b7a2b5f626a02fa3bb540a1495e81d Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 12 May 2023 06:06:23 +0200 Subject: [PATCH] Improve empty notifications display (#24668) - Add icon and padding to empty notification list, center it - Add icon to header - Remove border below header #### Before Screenshot 2023-05-11 at 23 34 53 #### After Screenshot 2023-05-12 at 00 24 02 --- .../user/notification/notification_div.tmpl | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index b8efd2433e..6047f34580 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -1,6 +1,9 @@
-

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

+

+ {{svg "octicon-bell" 28 "gt-mr-3 gt-mt-1"}} + {{.locale.Tr "notification.notifications"}} +

{{$notificationUnreadCount := call .NotificationUnreadCount}} @@ -23,11 +26,14 @@
{{if eq (len .Notifications) 0}} - {{if eq .Status 1}} - {{.locale.Tr "notification.no_unread"}} - {{else}} - {{.locale.Tr "notification.no_read"}} - {{end}} +
+ {{svg "octicon-inbox" 56 "gt-mb-4"}} + {{if eq .Status 1}} + {{.locale.Tr "notification.no_unread"}} + {{else}} + {{.locale.Tr "notification.no_read"}} + {{end}} +
{{else}}