diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-09 19:17:18 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-09 19:17:18 +1000 |
| commit | a9b93d27606f75ec0094702e1d0781da4815ee6b (patch) | |
| tree | 53643aaff9bae45701406a1564a871533ad011dc /templates | |
| parent | 288988e6bd6bbff69509e0c6f15c810479041cc7 (diff) | |
"Are you sure you want to demote yourself?"
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/users.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mod/users.html b/templates/mod/users.html index 984c48e1..b4c666e1 100644 --- a/templates/mod/users.html +++ b/templates/mod/users.html @@ -51,7 +51,7 @@ <a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/promote" title="{% trans 'Promote' %}">▲</a> {% endif %} {% if mod|hasPermission(config.mod.promoteusers) and user.type > constant(config.mod.groups|first) %} - <a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/demote" title="{% trans 'Demote' %}">▼</a> + <a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/demote" title="{% trans 'Demote' %}"{% if mod.id == user.id %} onclick="return confirm('{% trans 'Are you sure you want to demote yourself?' %}')"{% endif %}>▼</a> {% endif %} {% if mod|hasPermission(config.mod.modlog) %} <a class="unimportant" style="margin-left:5px;float:right" href="?/log:{{ user.username|e }}">[{% trans 'log' %}]</a> |
