mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-02 08:31:18 +03:00
659055138b
Fork of #14483, but [gave up MasterKey](https://github.com/go-gitea/gitea/pull/14483#issuecomment-1350728557), and fixed some problems. Close #12065. Needed by #13539. Featrues: - Secrets for repo and org, not user yet. - Use SecretKey to encrypte/encrypt secrets. - Trim spaces of secret value. - Add a new locale ini block, to make it easy to support secrets for user. Snapshots: Repo level secrets: ![image](https://user-images.githubusercontent.com/9418365/207823319-b8a4903f-38ca-4af7-9d05-336a5af906f3.png) Rrg level secrets ![image](https://user-images.githubusercontent.com/9418365/207823371-8bd02e93-1928-40d1-8c76-f48b255ace36.png) Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
36 lines
1.5 KiB
Handlebars
36 lines
1.5 KiB
Handlebars
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar shadow-body">
|
|
<div class="new-menu-inner">
|
|
<a class="{{if .PageIsSettingsOptions}}active {{end}}item" href="{{.RepoLink}}/settings">
|
|
{{.locale.Tr "repo.settings.options"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsCollaboration}}active {{end}}item" href="{{.RepoLink}}/settings/collaboration">
|
|
{{.locale.Tr "repo.settings.collaboration"}}
|
|
</a>
|
|
{{if not .Repository.IsEmpty}}
|
|
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
|
|
{{.locale.Tr "repo.settings.branches"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
|
|
{{.locale.Tr "repo.settings.tags"}}
|
|
</a>
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks">
|
|
{{.locale.Tr "repo.settings.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .SignedUser.CanEditGitHook}}
|
|
<a class="{{if .PageIsSettingsGitHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks/git">
|
|
{{.locale.Tr "repo.settings.githooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{.RepoLink}}/settings/keys">
|
|
{{.locale.Tr "secrets.secrets"}}
|
|
</a>
|
|
{{if .LFSStartServer}}
|
|
<a class="{{if .PageIsSettingsLFS}}active {{end}}item" href="{{.RepoLink}}/settings/lfs">
|
|
{{.locale.Tr "repo.settings.lfs"}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|