mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-11-14 02:04:11 +00:00
30 lines
864 B
Cheetah
30 lines
864 B
Cheetah
{{with .Data}}
|
|
{{if .}}
|
|
<table>
|
|
{{range .}}
|
|
<tr>
|
|
<td> {{template "userlistitem.tmpl" (WithContext . $.Ctx)}} </td>
|
|
<td>
|
|
{{if (ne $.Ctx.UserID .ID)}}
|
|
{{if .Pleroma.Relationship.Following}}
|
|
<form class="user-list-action" action="/unfollow/{{.ID}}" method="POST">
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
|
<button type="submit">Unfollow</button>
|
|
</form>
|
|
{{else}}
|
|
<form class="user-list-action" action="/follow/{{.ID}}" method="POST">
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
|
<button type="submit">Follow</button>
|
|
</form>
|
|
{{end}}
|
|
{{end}}
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
{{else}}
|
|
<p>No data found</p>
|
|
{{end}}
|
|
{{end}}
|