aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 07:12:06 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 07:12:06 +0200
commita14da171a0cd3f5023e97b6b36e6f8edee91376e (patch)
tree7f78690d2a7f118d66f1dbe00ac1261311cc17e0 /pyaggr3g470r/templates
parentBugfix. (diff)
downloadnewspipe-a14da171a0cd3f5023e97b6b36e6f8edee91376e.tar.gz
newspipe-a14da171a0cd3f5023e97b6b36e6f8edee91376e.tar.bz2
newspipe-a14da171a0cd3f5023e97b6b36e6f8edee91376e.zip
test account activation by admin.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/admin/dashboard.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/admin/dashboard.html b/pyaggr3g470r/templates/admin/dashboard.html
index 4e60ad1d..2a158df9 100644
--- a/pyaggr3g470r/templates/admin/dashboard.html
+++ b/pyaggr3g470r/templates/admin/dashboard.html
@@ -23,6 +23,11 @@
<td>
<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.apikey == "" %}
+ <a href="/admin/enable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ok-circle" title="Disable API key of this user"></i></a>
+ {% else %}
+ <a href="/admin/disable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ban-circle" title="Enable API key of this user"></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>
bgstack15