diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-11-25 22:45:43 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-11-25 22:45:43 +0100 |
commit | b2618e9404b84cc62d4becb02436233a0d53b375 (patch) | |
tree | a31f2dc76d23967fa0243374cf475923a4b7e451 /pyaggr3g470r/templates/admin | |
parent | Updated default platform URL (for Heroku...). (diff) | |
download | newspipe-b2618e9404b84cc62d4becb02436233a0d53b375.tar.gz newspipe-b2618e9404b84cc62d4becb02436233a0d53b375.tar.bz2 newspipe-b2618e9404b84cc62d4becb02436233a0d53b375.zip |
Rfactorization. Just a start...
Diffstat (limited to 'pyaggr3g470r/templates/admin')
-rw-r--r-- | pyaggr3g470r/templates/admin/create_user.html | 29 | ||||
-rw-r--r-- | pyaggr3g470r/templates/admin/dashboard.html | 60 | ||||
-rw-r--r-- | pyaggr3g470r/templates/admin/user.html | 19 |
3 files changed, 0 insertions, 108 deletions
diff --git a/pyaggr3g470r/templates/admin/create_user.html b/pyaggr3g470r/templates/admin/create_user.html deleted file mode 100644 index 64387dce..00000000 --- a/pyaggr3g470r/templates/admin/create_user.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "layout.html" %} -{% block head%} -{{super()}} -{% endblock %} -{% block content %} -<div class="container"> - <div class="well"> - <h2>{{ message | safe }}</h2> - <form action="" method="post" name="saveprofileform" id="profileform"> - {{ form.hidden_tag() }} - - {{ form.nickname.label }} - {{ form.nickname(class_="form-control") }} {% for error in form.nickname.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} - - {{ form.email.label }} - {{ form.email(class_="form-control") }} {% for error in form.email.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} - - {{ form.password.label }} - {{ form.password(class_="form-control") }} {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} - - {{ form.refresh_rate.label }} - {{ form.refresh_rate(class_="form-control") }} {% for error in form.refresh_rate.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %} - - <br /> - {{ form.submit(class_="btn btn-default") }} - </form> - </div> -</div> -{% endblock %} diff --git a/pyaggr3g470r/templates/admin/dashboard.html b/pyaggr3g470r/templates/admin/dashboard.html deleted file mode 100644 index 25bd3883..00000000 --- a/pyaggr3g470r/templates/admin/dashboard.html +++ /dev/null @@ -1,60 +0,0 @@ -{% 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 %} diff --git a/pyaggr3g470r/templates/admin/user.html b/pyaggr3g470r/templates/admin/user.html deleted file mode 100644 index d1e08c0d..00000000 --- a/pyaggr3g470r/templates/admin/user.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "layout.html" %} -{% block head%} -{{super()}} -{% endblock %} -{% block content %} -<div class="container"> - <div class="well"> - <a href="/admin/edit_user/{{ user.id }}" class="btn btn-default">{{ _('Edit this user') }}</a> - <h2>{{ _('Membership') }}</h2> - <div class="row"> - <div class="col-md-6"> - <p>{{ _('Member since') }} {{ user.date_created | datetime }}.</p> - <p>{{ _('Last seen:') }} {{ user.last_seen | datetime }}.</p> - </div> - </div> - </div> - {% include "feed_list.html" %} -</div> -{% endblock %} |