mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Optimize html templates (#22080)
Replace `active{{end}} item` with `active{{end}} item`.
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
{{template "base/alert" .}}
|
||||
<h2 class="ui compact small menu header">
|
||||
{{if .Permission.CanRead $.UnitTypeReleases}}
|
||||
<a class="{{if (not .PageIsTagList)}}active{{end}} item" href="{{.RepoLink}}/releases">{{.locale.Tr "repo.release.releases"}}</a>
|
||||
<a class="{{if (not .PageIsTagList)}}active {{end}}item" href="{{.RepoLink}}/releases">{{.locale.Tr "repo.release.releases"}}</a>
|
||||
{{end}}
|
||||
{{if .Permission.CanRead $.UnitTypeCode}}
|
||||
<a class="{{if .PageIsTagList}}active{{end}} item" href="{{.RepoLink}}/tags">{{.locale.Tr "repo.release.tags"}}</a>
|
||||
<a class="{{if .PageIsTagList}}active {{end}}item" href="{{.RepoLink}}/tags">{{.locale.Tr "repo.release.tags"}}</a>
|
||||
{{end}}
|
||||
</h2>
|
||||
{{if (and .CanCreateRelease (not .PageIsTagList))}}
|
||||
|
Reference in New Issue
Block a user