diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-06-12 20:55:20 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-06-12 20:55:20 +0200 |
commit | 8a8b9f5a0b174225230c2ddb2dc9a0cecb33208e (patch) | |
tree | c1ba1ed6f42be001dd19758b6fd2f10510538ad8 /hyperkitty/templates/ajax | |
parent | a195f1b150d2b17cdefd64038528b53035d585f7 (diff) | |
download | hyperkitty-8a8b9f5a0b174225230c2ddb2dc9a0cecb33208e.tar.gz hyperkitty-8a8b9f5a0b174225230c2ddb2dc9a0cecb33208e.tar.xz hyperkitty-8a8b9f5a0b174225230c2ddb2dc9a0cecb33208e.zip |
Paginate the list of liked messages in the user profile
Diffstat (limited to 'hyperkitty/templates/ajax')
-rw-r--r-- | hyperkitty/templates/ajax/last_views.html | 2 | ||||
-rw-r--r-- | hyperkitty/templates/ajax/votes.html | 44 |
2 files changed, 46 insertions, 0 deletions
diff --git a/hyperkitty/templates/ajax/last_views.html b/hyperkitty/templates/ajax/last_views.html index a3e1786..0a6d97a 100644 --- a/hyperkitty/templates/ajax/last_views.html +++ b/hyperkitty/templates/ajax/last_views.html @@ -7,6 +7,7 @@ <thead> <tr> <th></th> + <th>List</th> <th>Subject</th> <th>Original author</th> <th>Start date</th> @@ -22,6 +23,7 @@ <i class="unread icon-eye-close" title="New comments"></i> {% endif %} </td> + <td>{{ lv.list_address }}</td> <td><a href="{% url 'thread' mlist_fqdn=lv.list_address threadid=lv.threadid %}" >{{ lv.thread.starting_email.subject }}</a></td> <td>{{ lv.thread.starting_email.sender_name }}</td> diff --git a/hyperkitty/templates/ajax/votes.html b/hyperkitty/templates/ajax/votes.html new file mode 100644 index 0000000..abe512e --- /dev/null +++ b/hyperkitty/templates/ajax/votes.html @@ -0,0 +1,44 @@ +{% load url from future %} +{% load i18n %} +{% load hk_generic %} + + {% if votes %} + <table class="table table-striped table-bordered table-condensed"> + <thead> + <tr> + <th>List</th> + <th>Subject</th> + <th>Author</th> + <th>Date</th> + <th>Vote</th> + </tr> + </thead> + <tbody> + {% for vote in votes %} + <tr> + <td>{{ vote.list_address }}</td> + <td><a href="{% url 'message_index' mlist_fqdn=vote.list_address message_id_hash=vote.messageid %}" + >{{ vote.message.subject }}</a></td> + <td>{{ vote.message.sender_name }}</td> + <td>{{ vote.message|get_date|date:"l, j F Y H:i:s" }}</td> + <td> + <form method="post" class="likeform" + action="{% url 'message_vote' mlist_fqdn=vote.list_address message_id_hash=vote.messageid %}"> + {% csrf_token %} + <input type="hidden" name="vote" value="0" /> + {% if vote.vote == 1 %} + <span class="youlike">You like it + {% elif vote.vote == -1 %} + <span class="youdislike">You dislike it + {% endif %} + (<a href="#cancelvote" class="cancel">cancel</a>)</span> + </form> + </td> + </tr> + {% endfor %} + </tbody> + </table> + {% include "paginator.html" with pager=votes page_key="vpage" %} + {% else %} + <p>No vote yet.</p> + {% endif %} |