From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/repo/settings/branches.tmpl | 78 +++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 templates/repo/settings/branches.tmpl (limited to 'templates/repo/settings/branches.tmpl') diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl new file mode 100644 index 0000000..52c0c2c --- /dev/null +++ b/templates/repo/settings/branches.tmpl @@ -0,0 +1,78 @@ +{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}} +
+ {{if .Repository.IsArchived}} +
+ {{ctx.Locale.Tr "repo.settings.archive.branchsettings_unavailable"}} +
+ {{else}} +

+ {{ctx.Locale.Tr "repo.default_branch"}} +

+
+

+ {{ctx.Locale.Tr "repo.settings.default_branch_desc"}} +

+
+ {{.CsrfTokenHtml}} + + {{if not .Repository.IsEmpty}} + + + {{end}} +
+
+ +

+ {{ctx.Locale.Tr "repo.settings.protected_branch"}} + +

+ +
+
+ {{range .ProtectedBranches}} +
+
+
+
{{.RuleName}}
+
+
+
+ {{ctx.Locale.Tr "repo.settings.edit_protected_branch"}} + +
+
+ {{else}} +
+ {{ctx.Locale.Tr "repo.settings.no_protected_branch"}} +
+ {{end}} +
+
+ {{end}} +
+ + + +{{template "repo/settings/layout_footer" .}} -- cgit v1.2.3