diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 7603646721..a06c837f50 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -295,16 +295,25 @@
+ {{/* ── Code ── */}} +
+ {{svg "octicon-code" 16}} {{ctx.Locale.Tr "repo.code"}} +
{{$isCodeEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeCode}} {{$isCodeGlobalDisabled := ctx.Consts.RepoUnitTypeCode.UnitGlobalDisabled}}
-
+
+
+ {{/* ── Wiki ── */}} +
+ {{svg "octicon-book" 16}} {{ctx.Locale.Tr "repo.wiki"}} +
{{$isInternalWikiEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeWiki}} {{$isExternalWikiEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalWiki}} {{$isWikiEnabled := or $isInternalWikiEnabled $isExternalWikiEnabled}} @@ -312,7 +321,6 @@ {{$isExternalWikiGlobalDisabled := ctx.Consts.RepoUnitTypeExternalWiki.UnitGlobalDisabled}} {{$isBothWikiGlobalDisabled := and $isWikiGlobalDisabled $isExternalWikiGlobalDisabled}}
-
@@ -350,9 +358,13 @@

{{ctx.Locale.Tr "repo.settings.external_wiki_url_desc"}}

+
+
-
- + {{/* ── Issues ── */}} +
+ {{svg "octicon-issue-opened" 16}} {{ctx.Locale.Tr "repo.issues"}} +
{{$isIssuesEnabled := or (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeIssues) (.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeExternalTracker)}} {{$isIssuesGlobalDisabled := ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled}} {{$isExternalTrackerGlobalDisabled := ctx.Consts.RepoUnitTypeExternalTracker.UnitGlobalDisabled}} @@ -451,9 +463,13 @@
+ +
-
- + {{/* ── Projects ── */}} +
+ {{svg "octicon-project" 16}} {{ctx.Locale.Tr "repo.projects"}} +
{{$isProjectsEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeProjects}} {{$isProjectsGlobalDisabled := ctx.Consts.RepoUnitTypeProjects.UnitGlobalDisabled}} {{$projectsUnit := .Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypeProjects}} @@ -493,13 +509,16 @@
+ +
-
- + {{/* ── Releases ── */}} +
+ {{svg "octicon-tag" 16}} {{ctx.Locale.Tr "repo.releases"}} +
{{$isReleasesEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypeReleases}} {{$isReleasesGlobalDisabled := ctx.Consts.RepoUnitTypeReleases.UnitGlobalDisabled}}
-
@@ -516,108 +535,29 @@
-
- - {{/* ── Licensing & Update Feeds ── */}} -
- -
- - -
-
-
-

{{ctx.Locale.Tr "repo.settings.licensing_section_desc"}}

-
- - -

{{ctx.Locale.Tr "repo.settings.update_platform_help"}}

-
-
-
- - -
-

{{ctx.Locale.Tr "repo.settings.require_update_key_help"}}

-
-
- - -

{{ctx.Locale.Tr "org.settings.download_gating_help"}}

-
-
- - -

{{ctx.Locale.Tr "repo.settings.support_url_help"}}

-
- -
-
{{ctx.Locale.Tr "repo.settings.extension_metadata"}}
-

{{ctx.Locale.Tr "repo.settings.extension_metadata_desc"}}

- -
-
- - -

{{ctx.Locale.Tr "org.settings.extension_name_help"}}

-
-
- - -

{{ctx.Locale.Tr "org.settings.display_name_help"}}

-
-
-
-
- - -
-
- - -

{{ctx.Locale.Tr "org.settings.target_version_help"}}

-
-
-
-
- - -
-
- - -
-
-
+
+
+ {{/* ── Packages ── */}} +
+ {{svg "octicon-package" 16}} {{ctx.Locale.Tr "repo.packages"}} +
{{$isPackagesEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypePackages}} {{$isPackagesGlobalDisabled := ctx.Consts.RepoUnitTypePackages.UnitGlobalDisabled}}
-
+
+
{{if not .IsMirror}} -
+ {{/* ── Pull Requests ── */}} +
+ {{svg "octicon-git-pull-request" 16}} {{ctx.Locale.Tr "repo.pulls"}} +
{{$pullRequestEnabled := .Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypePullRequests}} {{$pullRequestGlobalDisabled := ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled}} {{$prUnit := .Repository.MustGetUnit ctx ctx.Consts.RepoUnitTypePullRequests}} @@ -756,8 +696,11 @@
{{end}} -
-
+
+
+ {{end}} + +