nav.tmpl 1.0 KB

123456789101112131415
  1. <div id="setting-menu" class="grid-1-5 panel panel-radius left">
  2. <p class="panel-header"><strong>{{.i18n.Tr "repo.settings"}}</strong></p>
  3. <div class="panel-body">
  4. <ul class="menu menu-vertical switching-list grid-1-5 left">
  5. <li {{if .PageIsSettingsOptions}}class="current"{{end}}><a href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings.options"}}</a></li>
  6. <li {{if .PageIsSettingsCollaboration}}class="current"{{end}}><a href="{{.RepoLink}}/settings/collaboration">{{.i18n.Tr "repo.settings.collaboration"}}</a></li>
  7. <li {{if .PageIsSettingsHooks}}class="current"{{end}}><a href="{{.RepoLink}}/settings/hooks">{{.i18n.Tr "repo.settings.hooks"}}</a></li>
  8. {{if or .LoggedUser.AllowGitHook .LoggedUser.IsAdmin}}
  9. <li {{if .PageIsSettingsGitHooks}}class="current"{{end}}><a href="{{.RepoLink}}/settings/hooks/git">{{.i18n.Tr "repo.settings.githooks"}}</a></li>
  10. {{end}}
  11. <li {{if .PageIsSettingsKeys}}class="current"{{end}}><a href="{{.RepoLink}}/settings/keys">{{.i18n.Tr "repo.settings.deploy_keys"}}</a></li>
  12. </ul>
  13. </div>
  14. </div>