aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-09-27 10:04:56 +0000
committerr <r@freesoftwareextremist.com>2020-09-27 10:04:56 +0000
commit2b1c703b6ca0b670a11217802d6e4d64ffbf2601 (patch)
tree5fb497cabeb95b37e5d6b1824b1177c764e014b5 /templates
parent59692b715578cf02b8f01eda4692858ad922670e (diff)
downloadbloat-2b1c703b6ca0b670a11217802d6e4d64ffbf2601.tar.gz
bloat-2b1c703b6ca0b670a11217802d6e4d64ffbf2601.zip
Add likes list
Diffstat (limited to 'templates')
-rw-r--r--templates/user.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/user.tmpl b/templates/user.tmpl
index d260848..b7a12b9 100644
--- a/templates/user.tmpl
+++ b/templates/user.tmpl
@@ -100,6 +100,7 @@
{{if .IsCurrent}}
<div>
<a href="/user/{{.User.ID}}/bookmarks"> bookmarks </a> -
+ <a href="/user/{{.User.ID}}/likes"> likes </a> -
<a href="/user/{{.User.ID}}/mutes"> mutes </a> -
<a href="/user/{{.User.ID}}/blocks"> blocks </a>
</div>
@@ -146,6 +147,14 @@
<div class="no-data-found">No data found</div>
{{end}}
+{{else if eq .Type "likes"}}
+<div class="page-title"> Likes </div>
+{{range .Statuses}}
+{{template "status.tmpl" (WithContext . $.Ctx)}}
+{{else}}
+<div class="no-data-found">No data found</div>
+{{end}}
+
{{else if eq .Type "mutes"}}
<div class="page-title"> Mutes </div>
{{template "userlist.tmpl" (WithContext .Users $.Ctx)}}