aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/admin/dashboard.html
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-12-12 21:14:28 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-12-17 09:42:56 +0100
commitb35e9773198ef2d8b37c4ca223f08147db47de0b (patch)
treeba4b1b171b3c1ab9414a96ad264c47b0f9d1246b /src/web/templates/admin/dashboard.html
parentUpdated link to Heroku deploy button on the About page. (diff)
downloadnewspipe-b35e9773198ef2d8b37c4ca223f08147db47de0b.tar.gz
newspipe-b35e9773198ef2d8b37c4ca223f08147db47de0b.tar.bz2
newspipe-b35e9773198ef2d8b37c4ca223f08147db47de0b.zip
moving the root of source code from / to /src/
Diffstat (limited to 'src/web/templates/admin/dashboard.html')
-rw-r--r--src/web/templates/admin/dashboard.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html
new file mode 100644
index 00000000..25bd3883
--- /dev/null
+++ b/src/web/templates/admin/dashboard.html
@@ -0,0 +1,60 @@
+{% 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>{{ _('Nickname') }}</th>
+ <th>{{ _('Email') }}</th>
+ <th>{{ _('Last seen') }}</th>
+ <th>{{ _('Actions') }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for user in users|sort(attribute="last_seen")|reverse %}
+ <tr {% if user.activation_key != "" %}class="warning"{% endif %}>
+ <td>{{ loop.index }}</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 class="date">{{ user.last_seen }}</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.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 %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+<a href="/admin/create_user" class="btn btn-default">{{ _('Add a new user') }}</a>
+<h1>{{ _('Send notification messages') }}</h1>
+<form action="" method="post">
+ {{ form.hidden_tag() }}
+
+ {{ form.subject.label }}
+ {{ form.subject(class_="form-control") }} {% for error in form.subject.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
+
+ {{ form.message.label }}
+ {{ form.message(class_="form-control", rows=8) }} {% for error in form.message.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
+
+ <br />
+ {{ form.submit(class_="btn btn-default") }}
+</form>
+</div>
+{% endblock %}
bgstack15