File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
<div class="ui container" id="navbar">
2
2
<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>
6
3
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
7
4
<i class="sidebar icon"></i>
8
5
</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}}
9
21
</div>
10
22
11
23
{{if and .IsSigned .MustChangePassword}}
100
112
</div>
101
113
</div>
102
114
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"}}'>
104
116
<span class="text">
105
117
<span class="fitted">{{svg "octicon-bell"}}</span>
106
- <span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
107
118
{{$notificationUnreadCount := 0}}
108
119
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
109
120
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">
You can’t perform that action at this time.
0 commit comments