summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-01-11 20:33:47 +0800
committerGitHub <noreply@github.com>2022-01-11 12:33:47 +0000
commit0857c197a0f99df599516f7dc2bcd5665bb6c664 (patch)
treee19876471088f7073d3bf7687527eba9fb6185cb /templates/repo/settings
parentc0ed869e0f440e5d18c101fccbb4ff5516aaa13b (diff)
downloadgitea-0857c197a0f99df599516f7dc2bcd5665bb6c664.tar.gz
gitea-0857c197a0f99df599516f7dc2bcd5665bb6c664.zip
Fix collobration template (#18232)
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/collaboration.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl
index 228605f184..0a56b5b6ba 100644
--- a/templates/repo/settings/collaboration.tmpl
+++ b/templates/repo/settings/collaboration.tmpl
@@ -69,9 +69,9 @@
<div class="ui eight wide column tooltip" data-content="{{$.i18n.Tr "repo.settings.change_team_permission_tip"}}">
{{svg "octicon-shield-lock"}}
<div class="ui inline dropdown">
- <div class="text">{{if eq .Authorize 1}}{{$.i18n.Tr "repo.settings.collaboration.read"}}{{else if eq .Authorize 2}}{{$.i18n.Tr "repo.settings.collaboration.write"}}{{else if eq .Authorize 3}}{{$.i18n.Tr "repo.settings.collaboration.admin"}}{{else if eq .Authorize 4}}{{$.i18n.Tr "repo.settings.collaboration.owner"}}{{else}}{{$.i18n.Tr "repo.settings.collaboration.undefined"}}{{end}}</div>
+ <div class="text">{{if eq .AccessMode 1}}{{$.i18n.Tr "repo.settings.collaboration.read"}}{{else if eq .AccessMode 2}}{{$.i18n.Tr "repo.settings.collaboration.write"}}{{else if eq .AccessMode 3}}{{$.i18n.Tr "repo.settings.collaboration.admin"}}{{else if eq .AccessMode 4}}{{$.i18n.Tr "repo.settings.collaboration.owner"}}{{else}}{{$.i18n.Tr "repo.settings.collaboration.undefined"}}{{end}}</div>
</div>
- {{ if or (eq .Authorize 1) (eq .Authorize 2) }}
+ {{ if or (eq .AccessMode 1) (eq .AccessMode 2) }}
{{ $first := true }}
<div class="description">
Sections: {{range $u, $unit := $.Units}}{{if and ($.Repo.UnitEnabled $unit.Type) ($team.UnitEnabled $unit.Type)}}{{if $first}}{{ $first = false }}{{else}}, {{end}}{{$.i18n.Tr $unit.NameKey}}{{end}}{{end}} {{if $first}}None{{end}}