From e49ece459e2ee225ba677f8e0758a38a98b930f5 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 13 Apr 2012 22:00:40 +1000 Subject: new PM --- templates/mod/users.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 templates/mod/users.html (limited to 'templates/mod/users.html') diff --git a/templates/mod/users.html b/templates/mod/users.html new file mode 100644 index 00000000..aeacc8b5 --- /dev/null +++ b/templates/mod/users.html @@ -0,0 +1,54 @@ + + + + + + + + + + + {% for user in users %} + + + + + + + + + {% endfor %} +
IDUsernameTypeBoardsLast action…
{{ 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 %} +
-- cgit v1.3