mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-28 21:17:17 +02:00
Fix various legacy problems, including: * Don't create default column when viewing an empty project * Fix layouts for Windows * Fix (partially) #15509 * Fix (partially) #17705 The sidebar refactoring: it is a clear partial-reloading approach, brings better user experiences, and it makes "Multiple projects" / "Project column on issue sidebar" feature easy to be added. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
21 lines
1.0 KiB
Handlebars
21 lines
1.0 KiB
Handlebars
{{- $itemExtraClass := .ItemExtraClass -}}
|
|
{{- $data := .PageGlobalData -}}
|
|
{{if and $data $data.IsSigned}}{{/* data may not exist, for example: rendering 503 page before the PageGlobalData middleware */}}
|
|
{{- $activeStopwatch := call $data.GetActiveStopwatch -}}
|
|
{{- $notificationUnreadCount := call $data.GetNotificationUnreadCount -}}
|
|
{{if $activeStopwatch}}
|
|
<a class="item active-stopwatch {{$itemExtraClass}}" href="{{$activeStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}" data-seconds="{{$activeStopwatch.Seconds}}">
|
|
<div class="tw-relative flex-text-block">
|
|
{{svg "octicon-stopwatch"}}
|
|
<span class="header-stopwatch-dot"></span>
|
|
</div>
|
|
</a>
|
|
{{end}}
|
|
<a class="item {{$itemExtraClass}}" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}">
|
|
<div class="tw-relative flex-text-block">
|
|
{{svg "octicon-bell"}}
|
|
<span class="notification_count{{if not $notificationUnreadCount}} tw-hidden{{end}}">{{$notificationUnreadCount}}</span>
|
|
</div>
|
|
</a>
|
|
{{end}}
|