aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/admin/dashboard.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 22:26:18 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 22:26:18 +0200
commit35edc6340d3b6ad431299eede8d664cbc1238c05 (patch)
treefeaa2006612d1bb435e4d450af42bd78fe4067f6 /pyaggr3g470r/templates/admin/dashboard.html
parentFixed error in template. (diff)
downloadnewspipe-35edc6340d3b6ad431299eede8d664cbc1238c05.tar.gz
newspipe-35edc6340d3b6ad431299eede8d664cbc1238c05.tar.bz2
newspipe-35edc6340d3b6ad431299eede8d664cbc1238c05.zip
Updated dashboard.
Diffstat (limited to 'pyaggr3g470r/templates/admin/dashboard.html')
-rw-r--r--pyaggr3g470r/templates/admin/dashboard.html20
1 files changed, 13 insertions, 7 deletions
diff --git a/pyaggr3g470r/templates/admin/dashboard.html b/pyaggr3g470r/templates/admin/dashboard.html
index 6169476c..8a5bad61 100644
--- a/pyaggr3g470r/templates/admin/dashboard.html
+++ b/pyaggr3g470r/templates/admin/dashboard.html
@@ -18,17 +18,23 @@
{% for user in users|sort(attribute="nickname") %}
<tr>
<td>{{ loop.index }}</td>
- <td><a href="/admin/user/{{ user.id }}/">{{ user.nickname }}{% if user.id == current_user.id %} (It's you!){% endif %}</a></td>
+ {% if user.id == current_user.id %}
+ <td><a href="/management/">{{ user.nickname }}</a> (It's you!)</td>
+ {% else %}
+ <td><a href="/admin/user/{{ user.id }}/">{{ user.nickname }}</a></td>
+ {% endif %}
<td><a href="mailto:{{ user.email }}">{{ user.email }}</a></td>
<td>
- <a href="/admin/user/{{ user.id }}/"><i class="glyphicon glyphicon-user" title="{{ _('View this user') }}<"></i></a>
+ <a href="/admin/user/{{ user.id }}/"><i class="glyphicon glyphicon-user" title="{{ _('View this user') }}"></i></a>
<a href="/admin/edit_user/{{ user.id }}/"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this user') }}"></i></a>
- {% if user.activation_key == "" %}
- <a href="/admin/disable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ban-circle" title="Disable this account"></i></a>
- {% else %}
- <a href="/admin/enable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ok-circle" title="Enable this account"></i></a>
+ {% if user.id != current_user.id %}
+ {% if user.activation_key == "" %}
+ <a href="/admin/disable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ban-circle" title="Disable this account"></i></a>
+ {% else %}
+ <a href="/admin/enable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ok-circle" title="Enable this account"></i></a>
+ {% endif %}
+ <a href="/admin/delete_user/{{ user.id }}/"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this user') }}" onclick="return confirm('{{ _('You are going to delete this account.') }}');"></i></a>
{% endif %}
- <a href="/admin/delete_user/{{ user.id }}/"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this user') }}" onclick="return confirm('{{ _('You are going to delete this account.') }}');"></i></a>
</td>
</tr>
{% endfor %}
bgstack15