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/user_profile.html | |
| 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/user_profile.html')
| -rw-r--r-- | hyperkitty/templates/user_profile.html | 42 |
1 files changed, 4 insertions, 38 deletions
diff --git a/hyperkitty/templates/user_profile.html b/hyperkitty/templates/user_profile.html index a057fe2..f82f92d 100644 --- a/hyperkitty/templates/user_profile.html +++ b/hyperkitty/templates/user_profile.html @@ -75,43 +75,8 @@ <h3>Votes</h3> - <h4>Up Votes</h4> - {% if votes_up %} - <ul> - {% for vote in votes_up %} - <li> - {% if vote.message.content|trimString|length > 0 %} - <a href="{% url 'message_index' mlist_fqdn=vote.list_address message_id_hash=vote.messageid %}" - >{{ vote.message.subject }}</a> by {{ vote.message.sender_name }} - ({{ vote.message|get_date|date:"l, j F Y H:i:s" }}) - {% else %} - <a href="{% url 'message_index' mlist_fqdn=vote.list_address message_id_hash=vote.messageid %}">Message is empty</a> - {% endif %} - </li> - {% endfor %} - </ul> - {% else %} - <p>No up vote yet.</p> - {% endif %} - - <h4>Down Votes</h4> - {% if votes_down %} - <ul> - {% for vote in votes_down %} - <li> - {% if vote.message.content|trimString|length > 0 %} - <a href="{% url 'message_index' mlist_fqdn=vote.list_address message_id_hash=vote.messageid %}" - >{{ vote.message.subject }}</a> by {{ vote.message.sender_name }} - ({{ vote.message|get_date|date:"l, j F Y H:i:s" }}) - {% else %} - <a href="{% url 'message_index' mlist_fqdn=vote.list_address message_id_hash=vote.messageid %}">Message is empty</a> - {% endif %} - </li> - {% endfor %} - </ul> - {% else %} - <p>No down vote yet.</p> - {% endif %} + <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}img/ajax-loader.gif" /> + <div class="votes"></div> </div> @@ -122,7 +87,8 @@ <script type="text/javascript"> $(document).ready(function() { // Load the last views - update_last_views("{% url 'user_last_views' %}"); + update_user_profile_part(".views", "{% url 'user_last_views' %}"); + update_user_profile_part(".votes", "{% url 'user_votes' %}"); }); </script> |
