{{ user.id }} |
{{ user.username|e }} |
{% if user.type == constant('JANITOR') %}{% trans 'Janitor' %}
{% elseif user.type == constant('MOD') %}{% trans 'Mod' %}
{% elseif user.type == constant('ADMIN') %}{% trans 'Admin' %}
{% endif %}
|
{% if user.boards == '' %}
{% trans 'none' %}
{% elseif user.boards == '*' %}
{% trans 'all boards' %}
{% else %}
{# This is really messy, but IMO it beats doing it in PHP. #}
{% set boards = user.boards|split(',') %}
{% set _boards = [] %}
{% for board in boards %}
{% set _boards = _boards|push(board == '*' ? '*' : config.board_abbreviation|sprintf(board)) %}
{% endfor %}
{% set _boards = _boards|sort %}
{{ _boards|join(', ') }}
{% endif %}
|
{% if mod|hasPermission(config.mod.modlog) %}
{% if user.last %}
{{ user.last|ago }}
{% else %}
{% trans 'never' %}
{% endif %}
{% else %}
–
{% endif %}
|
{% if mod|hasPermission(config.mod.promoteusers) and user.type < constant('ADMIN') %}
▲
{% endif %}
{% if mod|hasPermission(config.mod.promoteusers) and user.type > constant('JANITOR') %}
▼
{% endif %}
{% if mod|hasPermission(config.editusers) or (mod|hasPermission(config.change_password) and mod.id == user.id) %}
[{% trans 'edit' %}]
{% endif %}
{% if mod|hasPermission(config.mod.create_pm) %}
[{% trans 'PM' %}]
{% endif %}
|
{% endfor %}