From dd136858f1ea40ad3c94191d647487fa4f31926c 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.0. Signed-off-by: Daniel Baumann --- templates/repo/settings/tags.tmpl | 126 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 templates/repo/settings/tags.tmpl (limited to 'templates/repo/settings/tags.tmpl') diff --git a/templates/repo/settings/tags.tmpl b/templates/repo/settings/tags.tmpl new file mode 100644 index 0000000..e7a7aaa --- /dev/null +++ b/templates/repo/settings/tags.tmpl @@ -0,0 +1,126 @@ +{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}} +
+ {{if .Repository.IsArchived}} +
+ {{ctx.Locale.Tr "repo.settings.archive.tagsettings_unavailable"}} +
+ {{else}} +

+ {{ctx.Locale.Tr "repo.settings.tags.protection"}} +

+ +
+
+
+
+
+ {{.CsrfTokenHtml}} +
+ + +
+
+ + +
+ {{if .Owner.IsOrganization}} +
+ + +
+ {{end}} +
+ {{if .PageIsEditProtectedTag}} + + + {{ctx.Locale.Tr "cancel"}} + + {{else}} + + {{end}} +
+
+
+
+ +
+ + + + + + + + {{range .ProtectedTags}} + + + + + + {{else}} + + {{end}} + +
{{ctx.Locale.Tr "repo.settings.tags.protection.pattern"}}{{ctx.Locale.Tr "repo.settings.tags.protection.allowed"}}
{{.NamePattern}}
+ {{if or .AllowlistUserIDs (and $.Owner.IsOrganization .AllowlistTeamIDs)}} + {{$userIDs := .AllowlistUserIDs}} + {{range $.Users}} + {{if SliceUtils.Contains $userIDs .ID}} + {{ctx.AvatarUtils.Avatar . 26}} {{.GetDisplayName}} + {{end}} + {{end}} + {{if $.Owner.IsOrganization}} + {{$teamIDs := .AllowlistTeamIDs}} + {{range $.Teams}} + {{if SliceUtils.Contains $teamIDs .ID}} + {{.Name}} + {{end}} + {{end}} + {{end}} + {{else}} + {{ctx.Locale.Tr "repo.settings.tags.protection.allowed.noone"}} + {{end}} + + {{ctx.Locale.Tr "edit"}} +
+ {{$.CsrfTokenHtml}} + + +
+
{{ctx.Locale.Tr "repo.settings.tags.protection.none"}}
+
+
+
+ {{end}} +
+{{template "repo/settings/layout_footer" .}} -- cgit v1.2.3