Skip to content

Commit 8accfa6

Browse files
committed
Adjust template for go-gitea#20069 smallbell
1 parent d0507ef commit 8accfa6

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

templates/base/head_navbar.tmpl

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
<div class="ui container" id="navbar">
22
<div class="item brand" style="justify-content: space-between;">
3-
<a href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}">
4-
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.i18n.Tr "logo"}}" aria-hidden="true">
5-
</a>
63
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
74
<i class="sidebar icon"></i>
85
</div>
6+
<a href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}">
7+
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.i18n.Tr "logo"}}" aria-hidden="true">
8+
</a>
9+
{{if .IsSigned}}
10+
<a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.i18n.Tr "notifications"}}'>
11+
<span class="text">
12+
<span class="fitted item">{{svg "octicon-bell"}}</span>
13+
{{$notificationUnreadCount := 0}}
14+
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
15+
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">
16+
{{$notificationUnreadCount}}
17+
</span>
18+
</span>
19+
</a>
20+
{{end}}
921
</div>
1022

1123
{{if and .IsSigned .MustChangePassword}}
@@ -100,10 +112,9 @@
100112
</div>
101113
</div>
102114

103-
<a href="{{AppSubUrl}}/notifications" class="item tooltip" data-content='{{.i18n.Tr "notifications"}}'>
115+
<a href="{{AppSubUrl}}/notifications" class="tooltip not-mobile" style="align-self:center;color:var(--color-text);margin-bottom:2px" data-content='{{.i18n.Tr "notifications"}}'>
104116
<span class="text">
105117
<span class="fitted">{{svg "octicon-bell"}}</span>
106-
<span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
107118
{{$notificationUnreadCount := 0}}
108119
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
109120
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">

0 commit comments

Comments
 (0)