{{.Team.Name}}
{{if .Team.IsMember $.SignedUser.ID}}
{{else if .IsOrganizationOwner}}
{{$.CsrfTokenHtml}}
{{end}}

{{if .Team.Description}} {{.Team.Description}} {{else}} {{.locale.Tr "org.teams.no_desc"}} {{end}}
{{if eq .Team.LowerName "owners"}}
{{.locale.Tr "org.teams.owners_permission_desc" | Str2html}}
{{else}}

{{.locale.Tr "org.team_access_desc"}}

    {{if .Team.IncludesAllRepositories}}
  • {{.locale.Tr "org.teams.all_repositories" | Str2html}} {{else}}
  • {{.locale.Tr "org.teams.specific_repositories" | Str2html}} {{end}} {{if .Team.CanCreateOrgRepo}}
  • {{.locale.Tr "org.teams.can_create_org_repo"}} {{end}}
{{if (eq .Team.AccessMode 2)}}

{{.locale.Tr "org.settings.permission"}}

{{.locale.Tr "org.teams.write_permission_desc" | Str2html}} {{else if (eq .Team.AccessMode 3)}}

{{.locale.Tr "org.settings.permission"}}

{{.locale.Tr "org.teams.admin_permission_desc" | Str2html}} {{else}} {{range $t, $unit := $.Units}} {{if (not $unit.Type.UnitGlobalDisabled)}} {{end}} {{end}}
{{.locale.Tr "units.unit"}} {{.locale.Tr "org.team_permission_desc"}}
{{$.locale.Tr $unit.NameKey}} {{if eq ($.Team.UnitAccessMode $.Context $unit.Type) 0 -}} {{$.locale.Tr "org.teams.none_access"}} {{- else if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $.Context $unit.Type) 1) -}} {{$.locale.Tr "org.teams.read_access"}} {{- else if eq ($.Team.UnitAccessMode $.Context $unit.Type) 2 -}} {{$.locale.Tr "org.teams.write_access"}} {{- end}}
{{end}}
{{end}}
{{if .IsOrganizationOwner}}
{{svg "octicon-gear"}} {{$.locale.Tr "org.teams.settings"}}
{{end}}