aboutsummaryrefslogtreecommitdiff
path: root/templates/requestlist.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-01-16 09:10:02 +0000
committerr <r@freesoftwareextremist.com>2021-01-16 09:49:15 +0000
commit91f68ccfb391ee53bfc36f4877ca8d8f63c8faf2 (patch)
tree1e1511a2d80840a68e81ad0a666bd8c2a7e105e4 /templates/requestlist.tmpl
parent384179e518c8d01a126e716a3f80a9543683e593 (diff)
downloadbloat-91f68ccfb391ee53bfc36f4877ca8d8f63c8faf2.tar.gz
bloat-91f68ccfb391ee53bfc36f4877ca8d8f63c8faf2.zip
Add follow request support
Diffstat (limited to 'templates/requestlist.tmpl')
-rw-r--r--templates/requestlist.tmpl34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/requestlist.tmpl b/templates/requestlist.tmpl
new file mode 100644
index 0000000..232b56d
--- /dev/null
+++ b/templates/requestlist.tmpl
@@ -0,0 +1,34 @@
+{{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="{{.AvatarStatic}}" 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="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="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}}