diff options
author | Jason Song <i@wolfogre.com> | 2022-12-09 21:34:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 21:34:51 +0800 |
commit | 2779d47ad3c986b779c2e17bb223b3af5a6f1287 (patch) | |
tree | 894bc259d3b40a5dd6318dc1de784100d03ed228 /templates/base | |
parent | 3c59d31bc605bbefc6636e9b0a93e90ad2696ed9 (diff) | |
download | gitea-2779d47ad3c986b779c2e17bb223b3af5a6f1287.tar.gz gitea-2779d47ad3c986b779c2e17bb223b3af5a6f1287.zip |
Optimize html templates (#22080)
Replace `active{{end}} item` with `active{{end}} item`.
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head_navbar.tmpl | 4 | ||||
-rw-r--r-- | templates/base/paginate.tmpl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 12837ebefe..4fc61cf369 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -175,7 +175,7 @@ {{svg "octicon-bell"}} {{.locale.Tr "notification.subscriptions"}}<!-- Subscriptions --> </a> - <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings"> + <a class="{{if .PageIsUserSettings}}active {{end}}item" href="{{AppSubUrl}}/user/settings"> {{svg "octicon-tools"}} {{.locale.Tr "your_settings"}}<!-- Your settings --> </a> @@ -186,7 +186,7 @@ {{if .IsAdmin}} <div class="divider"></div> - <a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin"> + <a class="{{if .PageIsAdmin}}active {{end}}item" href="{{AppSubUrl}}/admin"> {{svg "octicon-server"}} {{.locale.Tr "admin_panel"}}<!-- Admin Panel --> </a> diff --git a/templates/base/paginate.tmpl b/templates/base/paginate.tmpl index 1ed6970983..421e96a00a 100644 --- a/templates/base/paginate.tmpl +++ b/templates/base/paginate.tmpl @@ -15,7 +15,7 @@ {{if eq .Num -1}} <a class="disabled item">...</a> {{else}} - <a class="{{if .IsCurrent}}active{{end}} item content-center" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>{{.Num}}</a> + <a class="{{if .IsCurrent}}active {{end}}item content-center" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}>{{.Num}}</a> {{end}} {{end}} <a class="{{if not .HasNext}}disabled{{end}} item navigation" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}{{if $paginationLink}}&{{$paginationLink}}{{end}}"{{end}}> |