Browse Source

Surcharge de template : afficher les orgas en premier

master
nicod_ 3 years ago
parent
commit
47dc5c3340
  1. 1
      .gitattributes
  2. 16
      templates/explore/navbar.tmpl

1
.gitattributes vendored

@ -4,3 +4,4 @@ public/img/gitea-sm.png -text
public/js/boussole.js -text
/readme.md -text
templates/custom/footer.tmpl -text
templates/explore/navbar.tmpl -text

16
templates/explore/navbar.tmpl

@ -0,0 +1,16 @@
<div class="ui secondary pointing tabular top attached borderless stackable menu navbar">
<a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations">
<span class="octicon octicon-organization"></span> {{.i18n.Tr "explore.organizations"}}
</a>
<a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore/repos">
<span class="octicon octicon-repo"></span> {{.i18n.Tr "explore.repos"}}
</a>
<a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
<span class="octicon octicon-person"></span> {{.i18n.Tr "explore.users"}}
</a>
{{if .IsRepoIndexerEnabled}}
<a class="{{if .PageIsExploreCode}}active{{end}} item" href="{{AppSubUrl}}/explore/code">
<span class="octicon octicon-code"></span> {{.i18n.Tr "explore.code"}}
</a>
{{end}}
</div>
Loading…
Cancel
Save