{{ user.id }} |
{{ user.username }} |
{% if user.type == constant('JANITOR') %}Janitor
{% elseif user.type == constant('MOD') %}Mod
{% elseif user.type == constant('ADMIN') %}Admin
{% endif %}
|
{# 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(', ') }}
|
{% if mod|hasPermission(config.mod.modlog) %}
{{ user.last|ago }}
{% 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) %}
[edit]
{% endif %}
{% if mod|hasPermission(config.mod.create_pm) %}
[PM]
{% endif %}
|
{% endfor %}