mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 13:04:16 +01:00
fd941db246
* Protected branches system * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions * reformat tmpl * finished the UI and add/delete protected branch response * remove unused comment * indent all the template files and remove ru translations since we use crowdin * fix the push bug
28 lines
1.1 KiB
Cheetah
28 lines
1.1 KiB
Cheetah
<div class="four wide column">
|
|
<div class="ui vertical menu">
|
|
<div class="header item">{{.i18n.Tr "repo.settings"}}</div>
|
|
<a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.RepoLink}}/settings">
|
|
{{.i18n.Tr "repo.settings.options"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsCollaboration}}active{{end}} item" href="{{.RepoLink}}/settings/collaboration">
|
|
{{.i18n.Tr "repo.settings.collaboration"}}
|
|
</a>
|
|
{{if not .Repository.IsBare}}
|
|
<a class="{{if .PageIsSettingsBranches}}active{{end}} item" href="{{.RepoLink}}/settings/branches">
|
|
{{.i18n.Tr "repo.settings.branches"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks">
|
|
{{.i18n.Tr "repo.settings.hooks"}}
|
|
</a>
|
|
{{if .SignedUser.CanEditGitHook}}
|
|
<a class="{{if .PageIsSettingsGitHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks/git">
|
|
{{.i18n.Tr "repo.settings.githooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsKeys}}active{{end}} item" href="{{.RepoLink}}/settings/keys">
|
|
{{.i18n.Tr "repo.settings.deploy_keys"}}
|
|
</a>
|
|
</div>
|
|
</div>
|