summaryrefslogtreecommitdiffstats
path: root/forum/templates/user_votes.html
diff options
context:
space:
mode:
Diffstat (limited to 'forum/templates/user_votes.html')
-rw-r--r--forum/templates/user_votes.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/forum/templates/user_votes.html b/forum/templates/user_votes.html
new file mode 100644
index 00000000..94d7fcbd
--- /dev/null
+++ b/forum/templates/user_votes.html
@@ -0,0 +1,32 @@
+{% 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.vote 1 %}
+ <img src="{% href "/content/images/vote-arrow-up-on.png" %}" title="{% trans "upvote" %}">
+ {% else %}
+ <img src="{% href "/content/images/vote-arrow-down-on.png" %}" title="{% trans "downvote" %}">
+ {% endifequal %}
+ </div>
+ <div style="float:left;overflow:hidden;width:750px">
+ {% ifequal vote.answer_id 0 %}
+ <span class="question-title-link"><a href="{% url question vote.question_id %}{{ vote.title|slugify }}">{{ vote.title }}</a></span>
+ {% else %}
+ <span class="answer-title-link" ><a href="{% url question vote.question_id %}{{ vote.title|slugify }}#{{ vote.answer_id }}">{{ vote.title }}</a></span>
+ {% endifequal %}
+ <div style="height:5px"></div>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+{% endblock %}
+<!-- end user_votes.html -->