aboutsummaryrefslogtreecommitdiff
path: root/templates/user/settings/organizations.tmpl
blob: 53ae6bb3fda1b7466e5d741687ccdd706e714b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{template "base/head" .}}
<div class="user settings organizations">
	<div class="ui container">
		<div class="ui grid">
			{{template "user/settings/navbar" .}}
			<div class="twelve wide column content">
				{{template "base/alert" .}}
				<h4 class="ui top attached header">
					{{.i18n.Tr "settings.orgs"}}
					<div class="ui right">
						<a class="ui blue tiny button" href="{{AppSubURL}}/org/create">{{.i18n.Tr "new_org"}}</a>
					</div>
				</h4>
				<div class="ui attached segment orgs {{if .Orgs}}non-empty{{end}}">
					{{if .Orgs}}
						<div class="ui middle aligned divided list">
							{{range .Orgs}}
							<div class="item">
								<div class="right floated content">
									<button class="ui red tiny button inline text-thin delete-button" data-url="{{$.Link}}/leave" data-id="{{.ID}}">
										{{$.i18n.Tr "org.members.leave"}}
									</button>
								</div>
								<img class="ui mini image" src="{{.RelAvatarLink}}">
								<div class="content">
										<a href="{{.HomeLink}}">{{.Name}}</a>
								</div>
							</div>
							{{end}}
						</div>
					{{else}}
						{{.i18n.Tr "settings.orgs.none"}}
					{{end}}
				</div>
			</div>
		</div>
	</div>
</div>

<div class="ui small basic delete modal">
	<div class="ui icon header">
		<i class="trash icon"></i>
		{{.i18n.Tr "settings.orgs.leave_title"}}
	</div>
	<div class="content">
		<p>{{.i18n.Tr "settings.orgs.leave_desc"}}</p>
	</div>
	{{template "base/delete_modal_actions" .}}
</div>
{{template "base/footer" .}}