aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/notification
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-12-09 21:34:51 +0800
committerGitHub <noreply@github.com>2022-12-09 21:34:51 +0800
commit2779d47ad3c986b779c2e17bb223b3af5a6f1287 (patch)
tree894bc259d3b40a5dd6318dc1de784100d03ed228 /templates/user/notification
parent3c59d31bc605bbefc6636e9b0a93e90ad2696ed9 (diff)
downloadgitea-2779d47ad3c986b779c2e17bb223b3af5a6f1287.tar.gz
gitea-2779d47ad3c986b779c2e17bb223b3af5a6f1287.zip
Optimize html templates (#22080)
Replace `active{{end}} item` with `active{{end}} item`.
Diffstat (limited to 'templates/user/notification')
-rw-r--r--templates/user/notification/notification_div.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl
index 18071549a0..7c9f4d4a9b 100644
--- a/templates/user/notification/notification_div.tmpl
+++ b/templates/user/notification/notification_div.tmpl
@@ -3,11 +3,11 @@
<h1 class="ui dividing header">{{.locale.Tr "notification.notifications"}}</h1>
<div class="ui top attached tabular menu">
{{$notificationUnreadCount := call .NotificationUnreadCount}}
- <a href="{{AppSubUrl}}/notifications?q=unread" class="{{if eq .Status 1}}active{{end}} item">
+ <a href="{{AppSubUrl}}/notifications?q=unread" class="{{if eq .Status 1}}active {{end}}item">
{{.locale.Tr "notification.unread"}}
<div class="ui label {{if not $notificationUnreadCount}}hidden{{end}}">{{$notificationUnreadCount}}</div>
</a>
- <a href="{{AppSubUrl}}/notifications?q=read" class="{{if eq .Status 2}}active{{end}} item">
+ <a href="{{AppSubUrl}}/notifications?q=read" class="{{if eq .Status 2}}active {{end}}item">
{{.locale.Tr "notification.read"}}
</a>
{{if and (eq .Status 1)}}