From 4347c2947834fe7f2edf2b457b2d513454fc6a03 Mon Sep 17 00:00:00 2001 From: Mike Chen Date: Sun, 5 Jul 2009 10:23:30 +0800 Subject: initiliaze git rep --- templates/user_stats.html | 127 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 templates/user_stats.html (limited to 'templates/user_stats.html') diff --git a/templates/user_stats.html b/templates/user_stats.html new file mode 100644 index 00000000..f6f55246 --- /dev/null +++ b/templates/user_stats.html @@ -0,0 +1,127 @@ +{% extends "user.html" %} +{% load extra_tags %} +{% load humanize %} + {% block usercontent %} + + + + + + + +
+
{{questions|length}}
+
+

个问题

+
+ {% include "users_questions.html" %} +

 

+ + + + + + +
+
{{answered_questions|length}}
+
+

个回答

+
+
+ {% for answered_question in answered_questions %} +
+ +
+ {{ answered_question.vote_count }} +
+
+ +
+ {% endfor %} +
+

 

+ + + + + + +
+
{{total_votes}}
+
+

个投票

+
+
+ + + + + +
+ + {{up_votes}} + + + + {{down_votes}} + +
+
+

 

+ + + + + + +
+
{{tags|length}}
+
+

个标签

+
+
+ + + + + +
+ {% for tag in tags%} + × {{ tag.used_count|intcomma }}
+ {% if forloop.counter|divisibleby:"10" %} +
+ {% endif %} + {% endfor %} +
+
+

 

+ + + + + + +
+
{{total_awards}}
+
+

枚奖牌

+
+
+ + + + + +
+ {% for award in awards %} +  {{ award.name }} × {{ award.count|intcomma }}
+ {% if forloop.counter|divisibleby:"6" %} +
+ {% endif %} + {% endfor %} +
+
+ +{% endblock %} -- cgit v1.2.3-1-g7c22