aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/admin/dashboard.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 20:14:33 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 20:14:33 +0200
commit5d220e360454e7643eb5539fa329702cb5c273c5 (patch)
tree2797e3e3c98c0d47e9515ab4a2c9fd4c0f3070bd /pyaggr3g470r/templates/admin/dashboard.html
parentFixed bug for deployment on Heroku (3). (diff)
downloadnewspipe-5d220e360454e7643eb5539fa329702cb5c273c5.tar.gz
newspipe-5d220e360454e7643eb5539fa329702cb5c273c5.tar.bz2
newspipe-5d220e360454e7643eb5539fa329702cb5c273c5.zip
Management of users via the administrator's account.
Diffstat (limited to 'pyaggr3g470r/templates/admin/dashboard.html')
-rw-r--r--pyaggr3g470r/templates/admin/dashboard.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/admin/dashboard.html b/pyaggr3g470r/templates/admin/dashboard.html
new file mode 100644
index 00000000..2913d603
--- /dev/null
+++ b/pyaggr3g470r/templates/admin/dashboard.html
@@ -0,0 +1,44 @@
+{% extends "layout.html" %}
+{% block head%}
+{{super()}}
+{% endblock %}
+{% block content %}
+<div class="container">
+<h1>Registered users</h1>
+<table class="table table-striped">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Firstname</th>
+ <th>Lastname</th>
+ <th>Email</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for user in users|sort(attribute="firstname") %}
+ <tr>
+ <td>{{ loop.index }}</td>
+ <td><a href="/admin/user/{{ user.id }}/">{{ user.firstname }}</a></td>
+ <td>{{ user.lastname }}</td>
+ <td>{{ user.email }}</td>
+ <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="Enable API key of this user"></i></a>
+ {% else %}
+ <a href="/admin/disable_user/{{ user.id }}/"><i class="glyphicon glyphicon-ban-circle" title="Disable API key of this user"></i></a>
+ {% endif %}
+ <a href="/admin/delete_user/{{ user.id }}/"><i class="glyphicon glyphicon-remove" title="Delete this user"></i></a>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+<br />
+<a href="/admin/create_user/" class="btn btn-default">Add a new user</a>
+<br /><br />
+<p class="text-info">As an administrator you are not listed in this table.</p>
+</div>
+{% endblock %} \ No newline at end of file
bgstack15