{% extends 'layout.html.twig' %} {% block body %}

{{ 'heading.roles'|trans }}

{# Flash messages for feedback #} {% for message in app.flashes('success') %}
{{ message }}
{% endfor %} {% for message in app.flashes('error') %}
{{ message }}
{% endfor %} {% for message in app.flashes('warning') %}
{{ message }}
{% endfor %} {% if app.user %}

Your Roles

{{ app.user.userIdentifier }}

{% endif %} {# Form for adding a new role #}

Add Role to Yourself

{{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }}
{# Featured Writers Management #} {# Muted Users Management #}

Muted Users

Users with ROLE_MUTED are excluded from article listings (discover, latest articles).

{# Add new muted user form #}
Enter an npub to mute. User will be created if they don't exist.
{# List of muted users #} {% if mutedUsers is defined and mutedUsers|length > 0 %} {% for muted in mutedUsers %} {% endfor %}
Avatar Name Npub Actions
{% if muted.metadata.picture is defined and muted.metadata.picture %} Avatar {% else %} {% endif %} {% if muted.metadata %} {% else %} {{ muted.npub|shortenNpub }} {% endif %} {{ muted.npub|shortenNpub }}
{% else %}
No muted users yet. Add one using the form above or with the command:
php bin/console user:elevate npub1... ROLE_MUTED
{% endif %}
{% endblock %}