|
|
|
@ -1,22 +1,8 @@ |
|
|
|
|
<div class="ui container" id="navbar"> |
|
|
|
|
{{$notificationUnreadCount := 0}} |
|
|
|
|
{{if .IsSigned}} |
|
|
|
|
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}} |
|
|
|
|
{{end}} |
|
|
|
|
<div class="item brand" style="justify-content: space-between;"> |
|
|
|
|
<a href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}"> |
|
|
|
|
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.i18n.Tr "logo"}}" aria-hidden="true"> |
|
|
|
|
</a> |
|
|
|
|
{{if .IsSigned}} |
|
|
|
|
<a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.i18n.Tr "notifications"}}'> |
|
|
|
|
<span class="text black"> |
|
|
|
|
<span class="fitted">{{svg "octicon-bell"}}</span> |
|
|
|
|
<span class="ui red label mini{{if not $notificationUnreadCount}} hidden{{end}} notification_count"> |
|
|
|
|
{{$notificationUnreadCount}} |
|
|
|
|
</span> |
|
|
|
|
</span> |
|
|
|
|
<div class="ui container" style="padding-top: 4px;" id="navbar"> |
|
|
|
|
<div class="left item brand" style="justify-content: space-between;padding-top: 1px;margin-right: 0px!important;"> |
|
|
|
|
<a href="{{AppSubUrl}}/" data-content="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}"> |
|
|
|
|
<span style="font-size: 2em;color: #046380;">code</span>.tokarch.uk |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle"> |
|
|
|
|
<i class="sidebar icon"></i> |
|
|
|
|
</div> |
|
|
|
@ -91,7 +77,7 @@ |
|
|
|
|
<a class="stopwatch-link df ac" href="{{.ActiveStopwatch.IssueLink}}"> |
|
|
|
|
{{svg "octicon-issue-opened"}} |
|
|
|
|
<span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span> |
|
|
|
|
<span class="ui primary label stopwatch-time my-0 mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}"> |
|
|
|
|
<span class="ui label blue stopwatch-time my-0 mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}"> |
|
|
|
|
{{if .ActiveStopwatch}}{{Sec2Time .ActiveStopwatch.Seconds}}{{end}} |
|
|
|
|
</span> |
|
|
|
|
</a> |
|
|
|
@ -114,9 +100,12 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<a href="{{AppSubUrl}}/notifications" class="item tooltip not-mobile" data-content="{{.i18n.Tr "notifications"}}" aria-label="{{.i18n.Tr "notifications"}}"> |
|
|
|
|
<a href="{{AppSubUrl}}/notifications" class="item tooltip" data-content='{{.i18n.Tr "notifications"}}'> |
|
|
|
|
<span class="text"> |
|
|
|
|
<span class="fitted">{{svg "octicon-bell"}}</span> |
|
|
|
|
<span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span> |
|
|
|
|
{{$notificationUnreadCount := 0}} |
|
|
|
|
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}} |
|
|
|
|
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count"> |
|
|
|
|
{{$notificationUnreadCount}} |
|
|
|
|
</span> |
|
|
|
|