{% extends "user.html" %}
<!-- user_votes.html -->
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load i18n %}

{% block usercontent %}
        <div style="padding-top:5px;font-size:13px;">
        {% for vote in votes %}
            <div style="clear:both;line-height:20px" >
                <div style="width:150px;float:left">{% diff_date vote.voted_at 3 %}</div>
                <div style="width:30px;float:left">
                {% ifequal vote.value 1 %}
                    <img src="{% media  "/media/images/vote-arrow-up-on.png" %}" title="{% trans "upvote" %}">
                {% else %}
                    <img src="{% media  "/media/images/vote-arrow-down-on.png" %}" title="{% trans "downvote" %}">
                {% endifequal %}
                </div>
                <div style="float:left;overflow:hidden;width:750px">
                    <span class="{{ vote.node.node_type }}-title-link"><a href="{{ vote.node.get_absolute_url }}">{{ vote.node.headline }}</a></span>
                    <div style="height:5px"></div>
                </div>          
            </div>
        {% endfor %}
        </div>
{% endblock %}
<!-- end user_votes.html -->
