bloat/templates/requestlist.tmpl

48 lines
1.7 KiB
Cheetah
Raw Normal View History

2021-01-16 11:10:02 +02:00
{{with .Data}}
<div>
{{range .}}
<div class="user-list-item">
<div class="user-list-profile-img">
<a class="img-link" href="/user/{{.ID}}">
2021-04-07 09:55:11 +03:00
<img class="status-profile-img" src="{{.Avatar}}" title="@{{.Acct}}" alt="avatar" height="48" />
2021-01-16 11:10:02 +02:00
</a>
</div>
<div class="user-list-name">
<div>
<div class="status-dname">{{EmojiFilter (HTML .DisplayName) .Emojis | Raw}}</div>
2021-01-16 11:10:02 +02:00
<a class="img-link" href="/user/{{.ID}}">
<div class="status-uname">{{.Acct}}</div>
2021-01-16 11:10:02 +02:00
</a>
2023-11-14 12:21:38 +02:00
<div class="status-uregdate">registered/federated {{TimeSince .CreatedAt}}</div>
{{if eq (len .Note) 0}}
<div class="status-ubio">empty bio!</div>
{{end}}
{{if not .StatusesCount}}
<div class="status-ubio">no statuses!</div>
{{end}}
{{if .Moved}}
<div class="status-umv">Moved to <a href="/user/{{.Moved.ID}}">{{.Moved.Acct}}</a></div>
{{end}}
<div class="status-ufls">follows: {{.FollowingCount}} followers: {{.FollowersCount}}</div>
2021-01-16 11:10:02 +02:00
</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}}">
2021-01-16 11:10:02 +02:00
<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}}">
2021-01-16 11:10:02 +02:00
<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}}