mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-26 08:26:22 +01:00
Resolve https://gitea.com/gitea/act_runner/issues/102 This PR allows administrators of a private repository to specify some collaborative owners. The repositories of collaborative owners will be allowed to access this repository's actions and workflows. Settings for private repos:  --- This PR also moves "Enable Actions" setting to `Actions > General` page <img width="960" alt="image" src="https://github.com/user-attachments/assets/49337ec2-afb1-4a67-8516-5c9ef0ce05d4" /> <img width="960" alt="image" src="https://github.com/user-attachments/assets/f58ee6d5-17f9-4180-8760-a78e859f1c37" /> --------- Signed-off-by: Zettat123 <zettat123@gmail.com> Co-authored-by: ChristopherHX <christopher.homberger@web.de>
62 lines
2.8 KiB
Handlebars
62 lines
2.8 KiB
Handlebars
<div class="flex-container-nav">
|
|
<div class="ui fluid vertical menu">
|
|
<div class="header item">{{ctx.Locale.Tr "repo.settings"}}</div>
|
|
<a class="{{if .PageIsSettingsOptions}}active {{end}}item" href="{{.RepoLink}}/settings">
|
|
{{ctx.Locale.Tr "repo.settings.options"}}
|
|
</a>
|
|
{{if or .Repository.IsPrivate .Permission.HasAnyUnitPublicAccess}}
|
|
<a class="{{if .PageIsSettingsPublicAccess}}active {{end}}item" href="{{.RepoLink}}/settings/public_access">
|
|
{{ctx.Locale.Tr "repo.settings.public_access"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsCollaboration}}active {{end}}item" href="{{.RepoLink}}/settings/collaboration">
|
|
{{ctx.Locale.Tr "repo.settings.collaboration"}}
|
|
</a>
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks">
|
|
{{ctx.Locale.Tr "repo.settings.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeCode}}
|
|
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
|
|
{{ctx.Locale.Tr "repo.settings.branches"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
|
|
{{ctx.Locale.Tr "repo.settings.tags"}}
|
|
</a>
|
|
{{if .SignedUser.CanEditGitHook}}
|
|
<a class="{{if .PageIsSettingsGitHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks/git">
|
|
{{ctx.Locale.Tr "repo.settings.githooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{.RepoLink}}/settings/keys">
|
|
{{ctx.Locale.Tr "repo.settings.deploy_keys"}}
|
|
</a>
|
|
{{if .LFSStartServer}}
|
|
<a class="{{if .PageIsSettingsLFS}}active {{end}}item" href="{{.RepoLink}}/settings/lfs">
|
|
{{ctx.Locale.Tr "repo.settings.lfs"}}
|
|
</a>
|
|
{{end}}
|
|
{{end}}
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables .PageIsActionsSettingsGeneral}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "actions.actions"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsActionsSettingsGeneral}}active {{end}}item" href="{{.RepoLink}}/settings/actions/general">
|
|
{{ctx.Locale.Tr "actions.general"}}
|
|
</a>
|
|
{{if and .EnableActions (.Permission.CanRead ctx.Consts.RepoUnitTypeActions)}}
|
|
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{.RepoLink}}/settings/actions/runners">
|
|
{{ctx.Locale.Tr "actions.runners"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsSecrets}}active {{end}}item" href="{{.RepoLink}}/settings/actions/secrets">
|
|
{{ctx.Locale.Tr "secrets.secrets"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{.RepoLink}}/settings/actions/variables">
|
|
{{ctx.Locale.Tr "actions.variables"}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|