You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar.tmpl 1.4 kB

123456789101112131415161718192021222324252627282930313233
  1. <div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar shadow-body">
  2. <div class="new-menu-inner">
  3. <a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.RepoLink}}/settings">
  4. {{.i18n.Tr "repo.settings.options"}}
  5. </a>
  6. <a class="{{if .PageIsSettingsCollaboration}}active{{end}} item" href="{{.RepoLink}}/settings/collaboration">
  7. {{.i18n.Tr "repo.settings.collaboration"}}
  8. </a>
  9. {{if not .Repository.IsEmpty}}
  10. <a class="{{if .PageIsSettingsBranches}}active{{end}} item" href="{{.RepoLink}}/settings/branches">
  11. {{.i18n.Tr "repo.settings.branches"}}
  12. </a>
  13. {{end}}
  14. {{if not DisableWebhooks}}
  15. <a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks">
  16. {{.i18n.Tr "repo.settings.hooks"}}
  17. </a>
  18. {{end}}
  19. {{if .SignedUser.CanEditGitHook}}
  20. <a class="{{if .PageIsSettingsGitHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks/git">
  21. {{.i18n.Tr "repo.settings.githooks"}}
  22. </a>
  23. {{end}}
  24. <a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{.RepoLink}}/settings/keys">
  25. {{.i18n.Tr "repo.settings.deploy_keys"}}
  26. </a>
  27. {{if .LFSStartServer}}
  28. <a class="{{if .PageIsSettingsLFS}}active{{end}} item" href="{{.RepoLink}}/settings/lfs">
  29. {{.i18n.Tr "repo.settings.lfs"}}
  30. </a>
  31. {{end}}
  32. </div>
  33. </div>