summaryrefslogtreecommitdiffstats
path: root/templates/user_votes.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-07-10 19:15:28 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-07-10 19:15:28 -0400
commit35b666224a05fbd249b1c51a0a48fb95b246fe9a (patch)
treebfce966ce040dd849e8cc35a012d18f7632ad6b1 /templates/user_votes.html
parent5b45e526c74faf55110ff0afdcba19797d7e0f4d (diff)
downloadaskbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.gz
askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.bz2
askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.zip
adding all files again
Diffstat (limited to 'templates/user_votes.html')
-rw-r--r--templates/user_votes.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/user_votes.html b/templates/user_votes.html
new file mode 100644
index 00000000..ec967704
--- /dev/null
+++ b/templates/user_votes.html
@@ -0,0 +1,31 @@
+<!-- user_votes.html -->
+{% extends "user.html" %}
+{% load extra_tags %}
+{% 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="/content/images/vote-arrow-up-on.png" title="{% trans "upvote" %}">
+ {% else %}
+ <img src="/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="/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 %}
+<!-- end user_votes.html -->