File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
<div class="ui container" id="navbar">
2
+ {{$notificationUnreadCount := 0}}
3
+ {{if .IsSigned}}
4
+ {{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
5
+ {{end}}
2
6
<div class="item brand" style="justify-content: space-between;">
3
7
<a href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}">
4
8
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.i18n.Tr "logo"}}" aria-hidden="true">
5
9
</a>
10
+ {{if .IsSigned}}
11
+ <a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.i18n.Tr "notifications"}}'>
12
+ <span class="text black">
13
+ <span class="fitted">{{svg "octicon-bell"}}</span>
14
+ <span class="ui red label mini{{if not $notificationUnreadCount}} hidden{{end}} notification_count">
15
+ {{$notificationUnreadCount}}
16
+ </span>
17
+ </span>
18
+ </a>
19
+ {{end}}
6
20
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
7
21
<i class="sidebar icon"></i>
8
22
</div>
100
114
</div>
101
115
</div>
102
116
103
- <a href="{{AppSubUrl}}/notifications" class="item tooltip" data-content='{{.i18n.Tr "notifications"}}'>
117
+ <a href="{{AppSubUrl}}/notifications" class="item tooltip not-mobile " data-content='{{.i18n.Tr "notifications"}}'>
104
118
<span class="text">
105
119
<span class="fitted">{{svg "octicon-bell"}}</span>
106
- <span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
107
- {{$notificationUnreadCount := 0}}
108
- {{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
109
120
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">
110
121
{{$notificationUnreadCount}}
111
122
</span>
Original file line number Diff line number Diff line change @@ -1329,7 +1329,7 @@ footer {
1329
1329
@media @mediaMdAndUp {
1330
1330
.mobile-only ,
1331
1331
.ui.button.mobile-only {
1332
- display : none ;
1332
+ display : none !important ;
1333
1333
}
1334
1334
1335
1335
// has the same behaviour of sr-only, hiding the content for
@@ -1341,7 +1341,7 @@ footer {
1341
1341
1342
1342
@media @mediaSm {
1343
1343
.not-mobile {
1344
- display : none ;
1344
+ display : none !important ;
1345
1345
}
1346
1346
}
1347
1347
You can’t perform that action at this time.
0 commit comments