bloat/templates/requestlist.tmpl

37 lines
1.2 KiB
Cheetah
Raw Permalink Normal View History

2021-01-16 09:10:02 +00: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 06:55:11 +00:00
<img class="status-profile-img" src="{{.Avatar}}" title="@{{.Acct}}" alt="avatar" height="48" />
2021-01-16 09:10:02 +00:00
</a>
</div>
<div class="user-list-name">
<div>
2021-11-16 15:29:27 +00:00
<div class="status-dname"> {{EmojiFilter (html .DisplayName) .Emojis}} </div>
2021-01-16 09:10:02 +00:00
<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}}">
2021-01-16 09:10:02 +00: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 09:10:02 +00: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}}