mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-15 07:09:47 +01:00
8c79008d6f
These settings can allow users to only display the repositories explore page. Thanks to yp05327 and wxiaoguang ! --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 9206fbb55fd28f21720072fce6a36cc22277934c) Conflicts: - templates/explore/navbar.tmpl Resolved by manually applying the last hunk to our template.
23 lines
1 KiB
Go HTML Template
23 lines
1 KiB
Go HTML Template
<overflow-menu class="ui secondary pointing tabular top attached borderless menu secondary-nav">
|
|
<div class="overflow-menu-items tw-justify-center">
|
|
<a class="{{if .PageIsExploreRepositories}}active {{end}}item" href="{{AppSubUrl}}/explore/repos">
|
|
{{svg "octicon-repo"}} {{ctx.Locale.Tr "explore.repos"}}
|
|
</a>
|
|
{{if not .UsersPageIsDisabled}}
|
|
<a class="{{if .PageIsExploreUsers}}active {{end}}item" href="{{AppSubUrl}}/explore/users">
|
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "explore.users"}}
|
|
</a>
|
|
{{end}}
|
|
{{if not .OrganizationsPageIsDisabled}}
|
|
<a class="{{if .PageIsExploreOrganizations}}active {{end}}item" href="{{AppSubUrl}}/explore/organizations">
|
|
{{svg "octicon-organization"}} {{ctx.Locale.Tr "explore.organizations"}}
|
|
</a>
|
|
{{end}}
|
|
|
|
{{if and (not $.UnitTypeCode.UnitGlobalDisabled) .IsRepoIndexerEnabled (not .CodePageIsDisabled)}}
|
|
<a class="{{if .PageIsExploreCode}}active {{end}}item" href="{{AppSubUrl}}/explore/code">
|
|
{{svg "octicon-code"}} {{ctx.Locale.Tr "explore.code"}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</overflow-menu>
|