diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2013-08-10 17:47:49 -0400 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2013-08-15 11:11:22 +0000 |
| commit | 6103bcf05feeddace63fcc5857665d3762e25c8b (patch) | |
| tree | 8c025f22fa12d9927850d04e628c379e66eb9f91 /hyperkitty/templates/fragments/user_subscriptions.html | |
| parent | 5ad794b6425a08550a7d68f76e201ebfdad13dfc (diff) | |
| download | hyperkitty-6103bcf05feeddace63fcc5857665d3762e25c8b.tar.gz hyperkitty-6103bcf05feeddace63fcc5857665d3762e25c8b.tar.xz hyperkitty-6103bcf05feeddace63fcc5857665d3762e25c8b.zip | |
Add email and subscriptions to the user profile
Diffstat (limited to 'hyperkitty/templates/fragments/user_subscriptions.html')
| -rw-r--r-- | hyperkitty/templates/fragments/user_subscriptions.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/hyperkitty/templates/fragments/user_subscriptions.html b/hyperkitty/templates/fragments/user_subscriptions.html new file mode 100644 index 0000000..ef661c2 --- /dev/null +++ b/hyperkitty/templates/fragments/user_subscriptions.html @@ -0,0 +1,39 @@ +{% load url from future %} +{% load hk_generic %} + + {% if subscriptions %} + <table class="table table-striped table-bordered table-condensed subscriptions"> + <thead> + <tr> + <th>List</th> + <th>Time of first activity</th> + <th>First post</th> + <th>Posts to this list</th> + <th>Votes</th> + </tr> + </thead> + <tbody> + {% for sub in subscriptions %} + <tr> + <td> + <a href="{% url 'list_overview' sub.list_name %}">{{ sub.list_name }}</a> + </td> + {% if sub.first_post %} + <td> + {{ sub.first_post|get_date|date:"l, j F Y H:i:s" }} + {{ sub.first_post|get_date|timesince }} + </td> + <td>{{ sub.first_post.subject }}</td> + <td><a href="{{ sub.all_posts_url }}">{{ sub.posts_count }} post{{ sub.posts_count|pluralize }}</a></td> + <td><span class="likestatus {{ sub.likestatus }}">+{{ sub.likes }}/-{{ sub.dislikes }}</span></td> + {% else %} + <td colspan="4" style="text-align:center"><em>no post yet</em></td> + {% endif %} + </tr> + {% endfor %} + </tbody> + </table> + {% else %} + <p><em>no subscriptions</em></p> + {% endif %} + |
