summaryrefslogtreecommitdiffstats
path: root/templates/base/head_navbar.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-01-10 10:53:11 +0800
committerGitHub <noreply@github.com>2023-01-09 21:53:11 -0500
commit50f67d7e38581fbecc8d36605d5607239e11d305 (patch)
treecb52eced4236a84784080c9fe68061c0ca1ed7d3 /templates/base/head_navbar.tmpl
parenta35714372d9e6be2cf92ce27ef8b05b37f8cb283 (diff)
downloadgitea-50f67d7e38581fbecc8d36605d5607239e11d305.tar.gz
gitea-50f67d7e38581fbecc8d36605d5607239e11d305.zip
Don't display stop watch top bar icon when disabled and hidden when click other place (#22374)
Fix #22286 When timetracking is disabled, the stop watch top bar icon should be hidden. When the stop watch recording popup, it should be allowed to hide with some operation. Now click any place on this page will hide the popup window.
Diffstat (limited to 'templates/base/head_navbar.tmpl')
-rw-r--r--templates/base/head_navbar.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index 4fc61cf369..3c4670e418 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -77,6 +77,7 @@
</div>
{{else if .IsSigned}}
<div class="right stackable menu">
+ {{if EnableTimetracking}}
<a class="active-stopwatch-trigger item ui label {{if not .ActiveStopwatch}}hidden{{end}}" href="{{.ActiveStopwatch.IssueLink}}">
<span class="text">
<span class="fitted item">
@@ -115,6 +116,7 @@
</form>
</div>
</div>
+ {{end}}
<a href="{{AppSubUrl}}/notifications" class="item tooltip not-mobile" data-content="{{.locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
<span class="text">