{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
{{ctx.Locale.Tr "repo.settings.tags.protection.pattern"}} | {{ctx.Locale.Tr "repo.settings.tags.protection.allowed"}} | {{range .ProtectedTags}} |
---|---|---|
{{.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"}} |
{{ctx.Locale.Tr "repo.settings.tags.protection.none"}} |