summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/navbar.tmpl
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-12-09 21:34:51 +0800
committerGitHub <noreply@github.com>2022-12-09 21:34:51 +0800
commit2779d47ad3c986b779c2e17bb223b3af5a6f1287 (patch)
tree894bc259d3b40a5dd6318dc1de784100d03ed228 /templates/repo/issue/navbar.tmpl
parent3c59d31bc605bbefc6636e9b0a93e90ad2696ed9 (diff)
downloadgitea-2779d47ad3c986b779c2e17bb223b3af5a6f1287.tar.gz
gitea-2779d47ad3c986b779c2e17bb223b3af5a6f1287.zip
Optimize html templates (#22080)
Replace `active{{end}} item` with `active{{end}} item`.
Diffstat (limited to 'templates/repo/issue/navbar.tmpl')
-rw-r--r--templates/repo/issue/navbar.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/navbar.tmpl b/templates/repo/issue/navbar.tmpl
index 9a963cd822..1e57679657 100644
--- a/templates/repo/issue/navbar.tmpl
+++ b/templates/repo/issue/navbar.tmpl
@@ -1,4 +1,4 @@
<div class="ui compact left small menu">
- <a class="{{if .PageIsLabels}}active{{end}} item" href="{{.RepoLink}}/labels">{{.locale.Tr "repo.labels"}}</a>
- <a class="{{if .PageIsMilestones}}active{{end}} item" href="{{.RepoLink}}/milestones">{{.locale.Tr "repo.milestones"}}</a>
+ <a class="{{if .PageIsLabels}}active {{end}}item" href="{{.RepoLink}}/labels">{{.locale.Tr "repo.labels"}}</a>
+ <a class="{{if .PageIsMilestones}}active {{end}}item" href="{{.RepoLink}}/milestones">{{.locale.Tr "repo.milestones"}}</a>
</div>