From 695fefe5ab8cb5e501571156dcc5cf4d19c2e45c Mon Sep 17 00:00:00 2001 From: Bofh Date: Wed, 14 Dec 2022 23:44:03 +0100 Subject: [PATCH] Add "manage" button on users, to open the account on instance manager URL --- css/base.php | 4 ++++ js/templates/instance/filter-users.html | 32 ++++++++++++++++++++----- views/instance.php | 12 ++++++++++ 3 files changed, 42 insertions(+), 6 deletions(-) diff --git a/css/base.php b/css/base.php index ab82076..5550a8a 100644 --- a/css/base.php +++ b/css/base.php @@ -110,6 +110,10 @@ span.sr { background: #ffb5b5; color: #9d0202; } +.blue { + background: #b5d5ff; + color: #253d5e; +} .green { background: #c2ffb5; color: #386f2c; diff --git a/js/templates/instance/filter-users.html b/js/templates/instance/filter-users.html index 4248ba1..410f3bb 100644 --- a/js/templates/instance/filter-users.html +++ b/js/templates/instance/filter-users.html @@ -175,13 +175,29 @@
{mastodon:fields}
{note}
- + title="Add this user to the trusted_users list" + class="btn mid green"> + Trust + + + + + +
+ E.element('.item[data-id="{id}"]').remove()" + title="Hide the selected account for 1 day (24 hours)" + class="btn mid"> + Hide 1d + + {silencedText} + title="Suspend this user on the instance" + class="btn mid red"> + Suspend diff --git a/views/instance.php b/views/instance.php index e0ee166..0c5cb1f 100644 --- a/views/instance.php +++ b/views/instance.php @@ -15,6 +15,16 @@