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

{{if .Team.Description}} {{.Team.Description}} {{else}} {{ctx.Locale.Tr "org.teams.no_desc"}} {{end}}
{{if eq .Team.LowerName "owners"}}
{{ctx.Locale.Tr "org.teams.owners_permission_desc"}}
{{else}}

{{ctx.Locale.Tr "org.team_access_desc"}}

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

{{ctx.Locale.Tr "org.settings.permission"}}

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

{{ctx.Locale.Tr "org.settings.permission"}}

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