summaryrefslogtreecommitdiffstats
path: root/templates/user_votes.html
diff options
context:
space:
mode:
authorMike Chen <chagel@gmail.com>2009-07-05 10:23:06 +0800
committerMike Chen <chagel@gmail.com>2009-07-05 10:23:06 +0800
commit2acb62174ab2cac9c7a88faafcb5f0a22a54db6f (patch)
tree93e9d22d6fb8a6c882e3915a8511a3ac542a1e67 /templates/user_votes.html
downloadaskbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.tar.gz
askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.tar.bz2
askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.zip
initiliaze git rep
Diffstat (limited to 'templates/user_votes.html')
-rw-r--r--templates/user_votes.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/user_votes.html b/templates/user_votes.html
new file mode 100644
index 00000000..d50a3308
--- /dev/null
+++ b/templates/user_votes.html
@@ -0,0 +1,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 %} \ No newline at end of file