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

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

{{.i18n.Tr "org.team_access_desc"}}

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

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

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

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

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