mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 19:30:38 +00:00
e5a8ebc0ed
Don't remember why the previous decision that `Code` and `Release` are non-disable units globally. Since now every unit include `Code` could be disabled, maybe we should have a new rule that the repo should have at least one unit. So any unit could be disabled. Fixes #20960 Fixes #7525 --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: yp05327 <576951401@qq.com>
18 lines
878 B
Handlebars
18 lines
878 B
Handlebars
<div class="ui secondary pointing tabular top attached borderless menu new-menu navbar">
|
|
<a class="{{if .PageIsExploreRepositories}}active {{end}}item" href="{{AppSubUrl}}/explore/repos">
|
|
{{svg "octicon-repo"}} {{.locale.Tr "explore.repos"}}
|
|
</a>
|
|
{{if not .UsersIsDisabled}}
|
|
<a class="{{if .PageIsExploreUsers}}active {{end}}item" href="{{AppSubUrl}}/explore/users">
|
|
{{svg "octicon-person"}} {{.locale.Tr "explore.users"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsExploreOrganizations}}active {{end}}item" href="{{AppSubUrl}}/explore/organizations">
|
|
{{svg "octicon-organization"}} {{.locale.Tr "explore.organizations"}}
|
|
</a>
|
|
{{if and (not $.UnitTypeCode.UnitGlobalDisabled) .IsRepoIndexerEnabled}}
|
|
<a class="{{if .PageIsExploreCode}}active {{end}}item" href="{{AppSubUrl}}/explore/code">
|
|
{{svg "octicon-code"}} {{.locale.Tr "explore.code"}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|