2015-11-22 00:32:09 -06:00
|
|
|
<div class="ui six wide column">
|
2015-12-07 16:30:52 -06:00
|
|
|
<h4 class="ui top attached header">
|
|
|
|
<strong>{{.Team.Name}}</strong>
|
|
|
|
<div class="ui right">
|
2016-07-23 12:08:22 -05:00
|
|
|
{{if .Team.IsMember $.SignedUser.ID}}
|
2020-02-25 14:28:47 -06:00
|
|
|
<form method="post" action="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.ID}}&page=home">
|
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
<button type="submit" class="ui red tiny button">{{$.i18n.Tr "org.teams.leave"}}</button>
|
|
|
|
</form>
|
2015-12-07 16:30:52 -06:00
|
|
|
{{else if .IsOrganizationOwner}}
|
2020-02-25 14:28:47 -06:00
|
|
|
<form method="post" action="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?uid={{$.SignedUser.ID}}&page=team">
|
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
<button type="submit" class="ui blue tiny button">{{$.i18n.Tr "org.teams.join"}}</button>
|
|
|
|
</form>
|
2015-12-07 16:30:52 -06:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment detail">
|
|
|
|
<div class="item">
|
|
|
|
{{if .Team.Description}}
|
|
|
|
{{.Team.Description}}
|
|
|
|
{{else}}
|
|
|
|
<span class="text grey italic">{{.i18n.Tr "org.teams.no_desc"}}</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2018-12-09 00:42:11 -06:00
|
|
|
|
2015-12-07 16:30:52 -06:00
|
|
|
<div class="item">
|
|
|
|
{{if eq .Team.LowerName "owners"}}
|
|
|
|
{{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}}
|
|
|
|
{{else if (eq .Team.Authorize 1)}}
|
2019-11-06 03:37:14 -06:00
|
|
|
{{if .Team.IncludesAllRepositories}}
|
|
|
|
{{.i18n.Tr "org.teams.all_repositories_read_permission_desc" | Str2html}}
|
|
|
|
{{else}}
|
|
|
|
{{.i18n.Tr "org.teams.read_permission_desc" | Str2html}}
|
|
|
|
{{end}}
|
2015-12-07 16:30:52 -06:00
|
|
|
{{else if (eq .Team.Authorize 2)}}
|
2019-11-06 03:37:14 -06:00
|
|
|
{{if .Team.IncludesAllRepositories}}
|
|
|
|
{{.i18n.Tr "org.teams.all_repositories_write_permission_desc" | Str2html}}
|
|
|
|
{{else}}
|
|
|
|
{{.i18n.Tr "org.teams.write_permission_desc" | Str2html}}
|
|
|
|
{{end}}
|
2015-12-07 16:30:52 -06:00
|
|
|
{{else if (eq .Team.Authorize 3)}}
|
2019-11-06 03:37:14 -06:00
|
|
|
{{if .Team.IncludesAllRepositories}}
|
|
|
|
{{.i18n.Tr "org.teams.all_repositories_admin_permission_desc" | Str2html}}
|
|
|
|
{{else}}
|
|
|
|
{{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}}
|
|
|
|
{{end}}
|
2015-12-07 16:30:52 -06:00
|
|
|
{{end}}
|
2019-11-20 05:27:49 -06:00
|
|
|
{{if .Team.CanCreateOrgRepo}}
|
|
|
|
<br><br>{{.i18n.Tr "org.teams.create_repo_permission_desc" | Str2html}}
|
|
|
|
{{end}}
|
2015-12-07 16:30:52 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{if .IsOrganizationOwner}}
|
|
|
|
<div class="ui bottom attached segment">
|
2020-02-11 11:02:41 -06:00
|
|
|
<a class="ui teal small button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/edit">{{svg "octicon-gear" 16}} {{$.i18n.Tr "org.teams.settings"}}</a>
|
2015-12-07 16:30:52 -06:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|