aboutsummaryrefslogtreecommitdiff
path: root/templates/requestlist.tmpl
blob: 814262095ad3e45b8d3eebe1b47d382c4280f4c6 (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
{{with .Data}}
<div>
	{{range .}}
	<div class="user-list-item">
		<div class="user-list-profile-img">
			<a class="img-link" href="/user/{{.ID}}">
				<img class="status-profile-img" src="{{.Avatar}}" title="@{{.Acct}}" alt="avatar" height="48" />
			</a>
		</div>
		<div class="user-list-name">
			<div>
				<div class="status-dname"> {{EmojiFilter .DisplayName .Emojis}} </div>  
				<a class="img-link" href="/user/{{.ID}}">
					<div class="status-uname"> @{{.Acct}} </div>
				</a>
			</div>
			<form class="d-inline" action="/accept/{{.ID}}" method="post" target="_self">
				<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
				<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
				<input type="submit" value="accept" class="btn-link">
			</form>
			-
			<form class="d-inline" action="/reject/{{.ID}}" method="post" target="_self">
				<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
				<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
				<input type="submit" value="reject" class="btn-link">
			</form>
		</div>
	</div>
	{{else}}
	<div class="no-data-found">No data found</div>
	{{end}}
</div>
{{else}}
<div class="no-data-found">No data found</div>
{{end}}