]> git.openstreetmap.org Git - osqa.git/blob - osqa/forum/skins/default/templates/user_votes.html
Updated CSS and reformatted in IntelliJ
[osqa.git] / osqa / 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 -->