]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/user_votes.html
b402c26039bd3f7e60a010bba4404d1a261cc029
[osqa.git] / forum / skins / default / templates / user_votes.html
1 {% extends "user.html" %}
2 <!-- user_votes.html -->
3 {% load extra_tags %}
4 {% load extra_filters %}
5 {% load humanize %}
6 {% load i18n %}
7
8 {% block usercontent %}
9         <div style="padding-top:5px;font-size:13px;">
10         {% for vote in votes %}
11             <div style="clear:both;line-height:20px" >
12                 <div style="width:150px;float:left">{% diff_date vote.voted_at 3 %}</div>
13                 <div style="width:30px;float:left">
14                 {% ifequal vote.vote 1 %}
15                     <img src="{% media  "/media/images/vote-arrow-up-on.png" %}" title="{% trans "upvote" %}">
16                 {% else %}
17                     <img src="{% media  "/media/images/vote-arrow-down-on.png" %}" title="{% trans "downvote" %}">
18                 {% endifequal %}
19                 </div>
20                 <div style="float:left;overflow:hidden;width:750px">
21                     {% ifequal vote.answer_id 0 %}
22                     <span class="question-title-link"><a href="{{ vote.get_absolute_url }}">{{ vote.title }}</a></span>
23                     {% else %}
24                     <span class="answer-title-link" ><a href="{{ vote.get_absolute_url }}#{{ vote.answer_id }}">{{ vote.title }}</a></span>
25                     {% endifequal %}
26                     <div style="height:5px"></div>
27                 </div>          
28             </div>
29         {% endfor %}
30         </div>
31 {% endblock %}
32 <!-- end user_votes.html -->