summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2023-01-10 11:21:29 +0200
committerGitHub <noreply@github.com>2023-01-10 09:21:29 +0000
commit885082f7a78dc103f5aa4f2eab8834649d311e9f (patch)
tree5375ff7a2d3807702bab388e5c50e0cc8026af60 /templates
parent32999e251155efb8fc9c786613c6cd4f67e2494f (diff)
downloadgitea-885082f7a78dc103f5aa4f2eab8834649d311e9f.tar.gz
gitea-885082f7a78dc103f5aa4f2eab8834649d311e9f.zip
Don't display stop watch top bar icon when disabled and hidden when click other place (#22374) (#22387)
Backport #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')
-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 12837ebefe..c84e30ab2d 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">