{% extends 'manage/users/master.twig' %} {% from 'macros.twig' import container_title %} {% from 'manage/macros.twig' import permissions_table %} {% from '_layout/input.twig' import input_csrf, input_text, input_checkbox, input_file, input_select, input_colour, input_hidden %} {% set site_link = url('user-profile', {'user': user_info.id}) %} {% block manage_content %}
{% if manage_notices|length > 0 %}
{% for notice in manage_notices %}

{{ notice }}

{% endfor %}
{% endif %}
{{ container_title('Editing ' ~ user_info.name ~ ' (' ~ user_info.id ~ ')') }} {{ input_csrf() }}
{% if can_edit_user %} {% endif %}
{{ input_colour(can_edit_user ? 'colour[hex]' : '', '', user_info.colour) }}
{% for role in manage_roles %} {% endfor %}
{% if can_edit_user %}
{% endif %}
{{ container_title('Moderator tools') }}

Links to various moderator tools to use on this user, provided you have access to them.

{% if can_manage_notes %}  Notes {% endif %} {% if can_manage_warnings %}  Warnings {% endif %} {% if can_manage_bans %}  Bans {% endif %}
{% if can_send_test_mail %}
{{ container_title('Send test e-mail to ' ~ user_info.name ~ ' (' ~ user_info.id ~ ')') }}

DO NOT ABUSE THIS SHIT

{{ input_csrf() }} {{ input_hidden('send_test_email', 'yes_send_it') }}
{% endif %} {% if can_impersonate %}
{{ container_title('Impersonate ' ~ user_info.name ~ ' (' ~ user_info.id ~ ')') }}

Uses a special token to completely impersonate this user for testing.

{{ input_csrf() }} {{ input_hidden('impersonate_user', 'meow') }}
{% endif %} {% if perms_lists is defined and perms_infos is defined %}
{{ container_title('Permissions for ' ~ user_info.name ~ ' (' ~ user_info.id ~ ')') }} {{ permissions_table(perms_lists, perms_infos, not can_edit_perms) }} {% if can_edit_perms %} {{ input_csrf() }}
{% endif %}
{% endif %}
{% endblock %}