From ce0195a8104f34ff18f831754c428aec904c0f89 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 17 Jan 2024 10:25:08 +0000 Subject: [PATCH] Add inline mute/block buttons on mute/block page --- templates/user.tmpl | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/templates/user.tmpl b/templates/user.tmpl index 1ae75f9..8f47929 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -172,11 +172,45 @@ {{else if eq .Type "mutes"}}

Mutes

-{{template "userlist.tmpl" (WithContext .Users $.Ctx)}} +{{if .Users}} + +{{range .Users}} + + + + +{{end}} +
{{template "userlistitem.tmpl" (WithContext . $.Ctx)}} +
+ + + +
+
+{{else}} +

No data found

+{{end}} {{else if eq .Type "blocks"}}

Blocks

-{{template "userlist.tmpl" (WithContext .Users $.Ctx)}} +{{if .Users}} + +{{range .Users}} + + + + +{{end}} +
{{template "userlistitem.tmpl" (WithContext . $.Ctx)}} +
+ + + +
+
+{{else}} +

No data found

+{{end}} {{else if eq .Type "requests"}}

Follow requests