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

navbar.tmpl 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. {{.locale.Tr "repo.settings.options"}}
  5. </a>
  6. <a class="{{if .PageIsSettingsCollaboration}}active {{end}}item" href="{{.RepoLink}}/settings/collaboration">
  7. {{.locale.Tr "repo.settings.collaboration"}}
  8. </a>
  9. {{if not .Repository.IsEmpty}}
  10. <a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
  11. {{.locale.Tr "repo.settings.branches"}}
  12. </a>
  13. {{end}}
  14. <a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
  15. {{.locale.Tr "repo.settings.tags"}}
  16. </a>
  17. {{if not DisableWebhooks}}
  18. <a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks">
  19. {{.locale.Tr "repo.settings.hooks"}}
  20. </a>
  21. {{end}}
  22. {{if .SignedUser.CanEditGitHook}}
  23. <a class="{{if .PageIsSettingsGitHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks/git">
  24. {{.locale.Tr "repo.settings.githooks"}}
  25. </a>
  26. {{end}}
  27. <a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{.RepoLink}}/settings/keys">
  28. {{.locale.Tr "repo.settings.deploy_keys"}}
  29. </a>
  30. {{if .EnableActions}}
  31. <a class="{{if .PageIsSettingsSecrets}}active {{end}}item" href="{{.RepoLink}}/settings/secrets">
  32. {{.locale.Tr "secrets.secrets"}}
  33. </a>
  34. {{end}}
  35. {{if .LFSStartServer}}
  36. <a class="{{if .PageIsSettingsLFS}}active {{end}}item" href="{{.RepoLink}}/settings/lfs">
  37. {{.locale.Tr "repo.settings.lfs"}}
  38. </a>
  39. {{end}}
  40. {{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}}
  41. <a class="{{if .PageIsSettingsRunners}}active {{end}}item" href="{{.RepoLink}}/settings/runners">
  42. {{.locale.Tr "actions.runners"}}
  43. </a>
  44. {{end}}
  45. </div>
  46. </div>