<div class="flex-container-nav">
	<div class="ui fluid vertical menu">
		<div class="header item">{{svg "octicon-gear"}} {{ctx.Locale.Tr "repo.settings"}}</div>
		<a class="{{if .PageIsSettingsOptions}}active {{end}}item" href="{{.RepoLink}}/settings">
			{{svg "octicon-gear"}} {{ctx.Locale.Tr "repo.settings.options"}}
		</a>
		<a class="{{if .PageIsSettingsAdvanced}}active {{end}}item" href="{{.RepoLink}}/settings/advanced">
			{{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings.advanced_settings"}}
		</a>
		{{if .LicensingEnabled}}
		<a class="{{if .PageIsSettingsLicensing}}active {{end}}item" href="{{.RepoLink}}/settings/licensing">
			{{svg "octicon-broadcast"}} {{ctx.Locale.Tr "repo.settings.licensing_section"}}
		</a>
		{{end}}
		<a class="{{if .PageIsSettingsManifest}}active {{end}}item" href="{{.RepoLink}}/settings/manifest">
			{{svg "octicon-file-code"}} {{ctx.Locale.Tr "repo.settings.manifest"}}
		</a>
		<a class="{{if .PageIsSettingsMetadata}}active {{end}}item" href="{{.RepoLink}}/settings/metadata">
			{{svg "octicon-list-unordered"}} {{ctx.Locale.Tr "repo.settings.metadata"}}
		</a>
		<a class="{{if .PageIsSettingsSecurity}}active {{end}}item" href="{{.RepoLink}}/settings/security">
			{{svg "octicon-shield"}} {{ctx.Locale.Tr "repo.settings.security"}}
		</a>
		{{if or .Repository.IsPrivate .Permission.HasAnyUnitPublicAccess}}
		<a class="{{if .PageIsSettingsPublicAccess}}active {{end}}item" href="{{.RepoLink}}/settings/public_access">
			{{svg "octicon-eye"}} {{ctx.Locale.Tr "repo.settings.public_access"}}
		</a>
		{{end}}
		<a class="{{if .PageIsSettingsCollaboration}}active {{end}}item" href="{{.RepoLink}}/settings/collaboration">
			{{svg "octicon-people"}} {{ctx.Locale.Tr "repo.settings.collaboration"}}
		</a>
		{{if not DisableWebhooks}}
			<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks">
				{{svg "octicon-webhook"}} {{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">
				{{svg "octicon-git-branch"}} {{ctx.Locale.Tr "repo.settings.branches"}}
			</a>
			<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
				{{svg "octicon-tag"}} {{ctx.Locale.Tr "repo.settings.tags"}}
			</a>
			{{if .SignedUser.CanEditGitHook}}
				<a class="{{if .PageIsSettingsGitHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks/git">
					{{svg "octicon-terminal"}} {{ctx.Locale.Tr "repo.settings.githooks"}}
				</a>
			{{end}}
			<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{.RepoLink}}/settings/keys">
				{{svg "octicon-key-asterisk"}} {{ctx.Locale.Tr "repo.settings.deploy_keys"}}
			</a>
			{{if .LFSStartServer}}
				<a class="{{if .PageIsSettingsLFS}}active {{end}}item" href="{{.RepoLink}}/settings/lfs">
					{{svg "octicon-file-binary"}} {{ctx.Locale.Tr "repo.settings.lfs"}}
				</a>
			{{end}}
		{{end}}
		<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables .PageIsActionsSettingsGeneral}}open{{end}}>
			<summary>{{svg "octicon-play"}} {{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>
