2015-11-22 12:02:09 +05:30
|
|
|
<div class="ui six wide column">
|
2015-12-08 04:00:52 +05:30
|
|
|
<h4 class="ui top attached header">
|
|
|
|
<strong>{{.Team.Name}}</strong>
|
|
|
|
<div class="ui right">
|
2016-07-23 22:38:22 +05:30
|
|
|
{{if .Team.IsMember $.SignedUser.ID}}
|
2020-02-28 03:30:13 +05:30
|
|
|
<form method="post" action="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave">
|
2020-02-26 01:58:47 +05:30
|
|
|
{{$.CsrfTokenHtml}}
|
2020-02-28 03:30:13 +05:30
|
|
|
<input type="hidden" name="page" value="home"/>
|
|
|
|
<button type="submit" class="ui red tiny button" name="uid" value="{{$.SignedUser.ID}}">{{$.i18n.Tr "org.teams.leave"}}</button>
|
2020-02-26 01:58:47 +05:30
|
|
|
</form>
|
2015-12-08 04:00:52 +05:30
|
|
|
{{else if .IsOrganizationOwner}}
|
2020-02-28 03:30:13 +05:30
|
|
|
<form method="post" action="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join">
|
2020-02-26 01:58:47 +05:30
|
|
|
{{$.CsrfTokenHtml}}
|
2020-02-28 03:30:13 +05:30
|
|
|
<input type="hidden" name="page" value="team"/>
|
|
|
|
<button type="submit" class="ui blue tiny button" name="uid" value="{{$.SignedUser.ID}}">{{$.i18n.Tr "org.teams.join"}}</button>
|
2020-02-26 01:58:47 +05:30
|
|
|
</form>
|
2015-12-08 04:00:52 +05:30
|
|
|
{{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 12:12:11 +05:30
|
|
|
|
2015-12-08 04:00:52 +05:30
|
|
|
<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 15:07:14 +05:30
|
|
|
{{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-08 04:00:52 +05:30
|
|
|
{{else if (eq .Team.Authorize 2)}}
|
2019-11-06 15:07:14 +05:30
|
|
|
{{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-08 04:00:52 +05:30
|
|
|
{{else if (eq .Team.Authorize 3)}}
|
2019-11-06 15:07:14 +05:30
|
|
|
{{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-08 04:00:52 +05:30
|
|
|
{{end}}
|
2019-11-20 16:57:49 +05:30
|
|
|
{{if .Team.CanCreateOrgRepo}}
|
|
|
|
<br><br>{{.i18n.Tr "org.teams.create_repo_permission_desc" | Str2html}}
|
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{if .IsOrganizationOwner}}
|
|
|
|
<div class="ui bottom attached segment">
|
2020-09-12 01:49:00 +05:30
|
|
|
<a class="ui teal small button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/edit">{{svg "octicon-gear"}} {{$.i18n.Tr "org.teams.settings"}}</a>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|