|
|
|
@ -7,19 +7,18 @@ |
|
|
|
|
<a class="{{if .PageIsSettingsCollaboration}}active {{end}}item" href="{{.RepoLink}}/settings/collaboration"> |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.collaboration"}} |
|
|
|
|
</a> |
|
|
|
|
{{if not .Repository.IsEmpty}} |
|
|
|
|
{{if not DisableWebhooks}} |
|
|
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks"> |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.hooks"}} |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
{{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}} |
|
|
|
|
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches"> |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.branches"}} |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags"> |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.tags"}} |
|
|
|
|
</a> |
|
|
|
|
{{if not DisableWebhooks}} |
|
|
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks"> |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.hooks"}} |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
{{if .SignedUser.CanEditGitHook}} |
|
|
|
|
<a class="{{if .PageIsSettingsGitHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks/git"> |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.githooks"}} |
|
|
|
@ -33,6 +32,7 @@ |
|
|
|
|
{{ctx.Locale.Tr "repo.settings.lfs"}} |
|
|
|
|
</a> |
|
|
|
|
{{end}} |
|
|
|
|
{{end}} |
|
|
|
|
{{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}} |
|
|
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables}}open{{end}}> |
|
|
|
|
<summary>{{ctx.Locale.Tr "actions.actions"}}</summary> |
|
|
|
|