Make settings tab not active when on repository units tab

This commit is contained in:
hazycora 2024-02-28 21:17:53 -06:00
parent d0e5af7079
commit 6e6ebe4857
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E

View file

@ -177,7 +177,7 @@
{{svg "octicon-diff-added"}} {{ctx.Locale.Tr "repo.settings.units.add_more"}}
</a>
{{end}}
<a class="{{if .PageIsRepoSettings}}active {{end}} item" href="{{.RepoLink}}/settings">
<a class="{{if and .PageIsRepoSettings (not .PageIsRepoSettingsUnits)}}active {{end}} item" href="{{.RepoLink}}/settings">
{{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}}
</a>
{{end}}