mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
3e7101dd64
I am not sure what "new-menu" means, but I think we need to fix these problems: 1. it shouldn't have "stackable", which makes the items stacked when width is small. the `new-menu` already has `overflow: auto` 2. `justify-content: center` doesn't work with `overflow: auto` (for small width), so use `margin: auto` * https://bhch.github.io/posts/2021/04/centring-flex-items-and-allowing-overflow-scroll/ 3. `runner-new-menu` is dead code (copying & pasting ?)
18 lines
834 B
Handlebars
18 lines
834 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 .IsRepoIndexerEnabled}}
|
|
<a class="{{if .PageIsExploreCode}}active {{end}}item" href="{{AppSubUrl}}/explore/code">
|
|
{{svg "octicon-code"}} {{.locale.Tr "explore.code"}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|