diff --git a/templates/admin/roles.html.twig b/templates/admin/roles.html.twig index be17758..7127e87 100644 --- a/templates/admin/roles.html.twig +++ b/templates/admin/roles.html.twig @@ -135,4 +135,85 @@ {% endif %} + {# Muted Users Management #} +
Users with ROLE_MUTED are excluded from article listings (discover, latest articles).
+ + {# Add new muted user form #} + + + {# List of muted users #} + {% if mutedUsers is defined and mutedUsers|length > 0 %} +| Avatar | +Name | +Npub | +Actions | +
|---|---|---|---|
|
+ {% if muted.metadata.picture is defined and muted.metadata.picture %}
+ |
+
+ {% if muted.metadata %}
+
+ |
+
+ {{ muted.npub|shortenNpub }}
+ |
+ + + | +
php bin/console user:elevate npub1... ROLE_MUTED
+