diff options
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/user_profile.html | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/hyperkitty/templates/user_profile.html b/hyperkitty/templates/user_profile.html index 3077141..8f73e81 100644 --- a/hyperkitty/templates/user_profile.html +++ b/hyperkitty/templates/user_profile.html @@ -33,12 +33,12 @@ </tr> </tbody> </table> + {% if settings.USE_MOCKUPS %} - <h3> Up Votes : </h3> + <h3> Up Votes : </h3> <ul> - {% for vote in user_profile.votes %} - {% if vote.vote == 1 %} + {% for vote in votes_up %} <li> {% if vote.message.content|trimString|length > 0 %} <a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">{{ vote.message.content|truncatechars:20 }}</a> @@ -46,15 +46,12 @@ <a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">Message is empty</a> {% endif %} </li> - {% endif %} {% endfor %} </ul> <h3> Down Votes : </h3> - <ul> - {% for vote in user_profile.votes %} - {% if vote.vote == -1 %} + {% for vote in votes_down %} <li> {% if vote.message.content|trimString|length > 0 %} <a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">{{ vote.message.content|truncatechars:20 }}</a> @@ -62,9 +59,9 @@ <a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">Message is empty</a> {% endif %} </li> - {% endif %} {% endfor %} </ul> + {% endif %} |