summaryrefslogtreecommitdiffstats
path: root/templates/user_votes.html
blob: d50a3308a40d3713107bb28d6c67b9d00bad7e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends "user.html" %}
{% load extra_tags %}
{% load humanize %}

{% 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.vote 1 %}
                    <img src="/content/images/vote-arrow-up-on.png" title="赞成票">
                {% else %}
                    <img src="/content/images/vote-arrow-down-on.png" title="反对票">
                {% endifequal %}
                </div>
                <div style="float:left;overflow:hidden;width:750px">
                    {% ifequal vote.answer_id 0 %}
                    <span class="question-title-link"><a href="/questions/{{ vote.question_id }}/{{ vote.title }}">{{ vote.title }}</a></span>
                    {% else %}
                    <span class="answer-title-link" ><a href="/questions/{{ vote.question_id }}/{{ vote.title }}#{{ vote.answer_id }}">{{ vote.title }}</a></span>
                    {% endifequal %}
                    <div style="height:5px"></div>
                </div>          
            </div>
        {% endfor %}
        </div>
{% endblock %}