From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/org/team/sidebar.tmpl | 94 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 templates/org/team/sidebar.tmpl (limited to 'templates/org/team/sidebar.tmpl') diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl new file mode 100644 index 0000000..c9f8025 --- /dev/null +++ b/templates/org/team/sidebar.tmpl @@ -0,0 +1,94 @@ +
+

+ {{.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}} + + {{end}} +
+ -- cgit v1.2.3