2017-06-02 14:13:44 +05:30
|
|
|
{{template "base/head" .}}
|
2020-12-01 09:30:14 +05:30
|
|
|
<div class="page-content user settings organization">
|
2017-06-02 14:13:44 +05:30
|
|
|
{{template "user/settings/navbar" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "settings.orgs"}}
|
|
|
|
{{if .SignedUser.CanCreateOrganization}}
|
|
|
|
<div class="ui right">
|
2019-12-04 07:09:58 +05:30
|
|
|
<a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "admin.orgs.new_orga"}}</a>
|
2017-06-02 14:13:44 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment orgs">
|
|
|
|
{{if .Orgs}}
|
|
|
|
<div class="ui middle aligned divided list">
|
|
|
|
{{range .Orgs}}
|
|
|
|
<div class="item">
|
|
|
|
<div class="right floated content">
|
2020-02-28 03:30:13 +05:30
|
|
|
<form method="post" action="{{AppSubUrl}}/org/{{.Name}}/members/action/leave">
|
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
<button type="submit" class="ui blue small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button>
|
|
|
|
</form>
|
2017-06-02 14:13:44 +05:30
|
|
|
</div>
|
2020-12-04 00:16:11 +05:30
|
|
|
{{avatar . 28 "mini"}}
|
2017-06-02 14:13:44 +05:30
|
|
|
<div class="content">
|
|
|
|
<a href="{{.HomeLink}}">{{.Name}}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{.i18n.Tr "settings.orgs_none"}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|