aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/admin/user.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/user.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/user.html')
-rw-r--r--pyaggr3g470r/templates/admin/user.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/admin/user.html b/pyaggr3g470r/templates/admin/user.html
new file mode 100644
index 00000000..767ff460
--- /dev/null
+++ b/pyaggr3g470r/templates/admin/user.html
@@ -0,0 +1,49 @@
+{% extends "layout.html" %}
+{% block head%}
+{{super()}}
+{% endblock %}
+{% block content %}
+<div class="container">
+ <div class="jumbotron">
+ <a href="/admin/edit_user/{{ user.id }}/" class="btn btn-default">Edit this user</a>
+ <h2>Membership</h2>
+ <p>Contributor since {{ user.date_created.strftime('%A, %d %B %Y') }}.</p>
+ <p>Last seen: {{ user.last_seen.strftime('%A, %d %B %Y at %H:%M:%S') }}.</p>
+ </div>
+ <div class="jumbotron">
+ {% if user.feeds.all()|count == 0 %}
+ <h1>This user is not subscribed to any feed.</h1>
+ {% else %}
+ <h1>Feeds</h1>
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Name</th>
+ <th>Feed link</th>
+ <th>Site link</th>
+ <th>Number of articles</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for feed in user.feeds|sort(attribute="name") %}
+ <tr>
+ <td>{{ loop.index }}</td>
+ <td><a href="/feed/{{ feed.id }}">{{ feed.title }}</a></td>
+ <td>{{ feed.link }}</td>
+ <td>{{ feed.site_link }}</td>
+ <td>{{ feed.articles.all()|count }}</td>
+ <td>
+ <a href="/feed/{{ feed.id }}"><i class="glyphicon glyphicon-th-list" title="Measures"></i></a>
+ <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a>
+ <a href="/delete_feed/{{ feed.id }}"><i class="glyphicon glyphicon-remove" title="Delete this feed"></i></a>
+ </td>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% endif %}
+ <a href="/create_feed/" class="btn btn-default">Add a new feed</a>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file
bgstack15