1{{template "base/head" .}}
2<div class="page-content user settings organization">
3	{{template "user/settings/navbar" .}}
4	<div class="ui container">
5		{{template "base/alert" .}}
6		<h4 class="ui top attached header">
7			{{.i18n.Tr "settings.orgs"}}
8			{{if .SignedUser.CanCreateOrganization}}
9			<div class="ui right">
10				<a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "admin.orgs.new_orga"}}</a>
11			</div>
12			{{end}}
13		</h4>
14		<div class="ui attached segment orgs">
15			{{if .Orgs}}
16				<div class="ui middle aligned divided list">
17					{{range .Orgs}}
18					<div class="item">
19						<div class="right floated content">
20							<form method="post" action="{{.OrganisationLink}}/members/action/leave">
21								{{$.CsrfTokenHtml}}
22								<button type="submit" class="ui blue small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button>
23							</form>
24						</div>
25						{{avatar . 28 "mini"}}
26						<div class="content">
27								<a href="{{.HomeLink}}">{{.Name}}</a>
28						</div>
29					</div>
30					{{end}}
31				</div>
32				{{template "base/paginate" .}}
33			{{else}}
34				{{.i18n.Tr "settings.orgs_none"}}
35			{{end}}
36		</div>
37	</div>
38</div>
39{{template "base/footer" .}}
40