summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/navbar.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /templates/repo/settings/navbar.tmpl
parentInitial commit. (diff)
downloadforgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.tar.xz
forgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.zip
Adding upstream version 9.0.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/repo/settings/navbar.tmpl')
-rw-r--r--templates/repo/settings/navbar.tmpl72
1 files changed, 72 insertions, 0 deletions
diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl
new file mode 100644
index 0000000..df5ba3a
--- /dev/null
+++ b/templates/repo/settings/navbar.tmpl
@@ -0,0 +1,72 @@
+<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>
+ <details class="item toggleable-item" {{if .PageIsRepoSettingsUnits}}open{{end}}>
+ <summary class="item{{if .PageIsRepoSettingsUnits}} active{{end}}">{{ctx.Locale.Tr "repo.settings.units.units"}}</summary>
+ <div class="menu">
+ <a class="item" href="{{.RepoLink}}/settings/units#overview">
+ {{ctx.Locale.Tr "repo.settings.units.overview"}}
+ </a>
+ <a class="item" href="{{.RepoLink}}/settings/units#issues">
+ {{ctx.Locale.Tr "repo.issues"}}
+ </a>
+ <a class="item" href="{{.RepoLink}}/settings/units#pulls">
+ {{ctx.Locale.Tr "repo.pulls"}}
+ </a>
+ <a class="item" href="{{.RepoLink}}/settings/units#wiki">
+ {{ctx.Locale.Tr "repo.wiki"}}
+ </a>
+ </div>
+ </details>
+ <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 $.Context $.UnitTypeCode}}
+ {{if 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 .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}}
+ {{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>
+ <div class="menu">
+ <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>
+ </div>
+ </details>
+ {{end}}
+ </div>
+</div>