diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-05-06 12:31:15 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-05-06 12:31:15 +1000 |
| commit | c2f790ee860eb88f8a3a5f19e9f7412a95e6aa1c (patch) | |
| tree | 0883115ece3d04f386cc42459833a4ef4359fcab /templates | |
| parent | bdb2f57ce860234ff6c7572654d2774a2e102cf6 (diff) | |
Don't show "Last action" in ?/users if you don't have permission
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/users.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/mod/users.html b/templates/mod/users.html index 761d3ddd..6ea6248f 100644 --- a/templates/mod/users.html +++ b/templates/mod/users.html @@ -4,7 +4,9 @@ <th>{% trans 'Username' %}</th> <th>{% trans 'Type' %}</th> <th>{% trans 'Boards' %}</th> - <th>{% trans 'Last action' %}</th> + {% if mod|hasPermission(config.mod.modlog) %} + <th>{% trans 'Last action' %}</th> + {% endif %} <th>…</th> </tr> @@ -34,17 +36,15 @@ {{ _boards|join(', ') }} {% endif %} </td> - <td> - {% if mod|hasPermission(config.mod.modlog) %} + {% if mod|hasPermission(config.mod.modlog) %} + <td> {% if user.last %} <span title="{{ user.action|e }}">{{ user.last|ago }}</span> {% else %} <em>{% trans 'never' %}</em> {% endif %} - {% else %} - – - {% endif %} - </td> + </td> + {% endif %} <td> {% if mod|hasPermission(config.mod.promoteusers) and user.type < constant('ADMIN') %} <a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/promote" title="{% trans 'Promote' %}">▲</a> |
