diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-05 10:23:06 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-05 10:23:06 +0800 |
commit | 2acb62174ab2cac9c7a88faafcb5f0a22a54db6f (patch) | |
tree | 93e9d22d6fb8a6c882e3915a8511a3ac542a1e67 /templates/user_stats.html | |
download | askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.tar.gz askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.tar.bz2 askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.zip |
initiliaze git rep
Diffstat (limited to 'templates/user_stats.html')
-rw-r--r-- | templates/user_stats.html | 127 |
1 files changed, 127 insertions, 0 deletions
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 %} + + <a name="questions"></a> + <table> + <tr> + <td> + <div style="text-align: right;" class="count">{{questions|length}}</div> + </td> + <td> + <h2>个问题</h2> + </td> + </tr> + </table> + {% include "users_questions.html" %} + <p> </p> + <a name="answers"></a> + <table> + <tr> + <td> + <div style="text-align: right;" class="count">{{answered_questions|length}}</div> + </td> + <td > + <h2>个回答</h2> + </td> + </tr> + </table> + <div class="user-stats-table"> + {% for answered_question in answered_questions %} + <div class="answer-summary"> + <a title="{{answered_question.summary}}" href="/questions/{{answered_question.id}}/{{answered_question.title}}#{{answered_question.answer_id}}"> + <div class="answer-votes {% if answered_question.accepted %}answered-accepted{% endif %}" title="该回答总共有{{ answered_question.vote_count }}个投票 {% if answered_question.accepted %}该回答已被设为最佳答案{%endif%}"> + {{ answered_question.vote_count }} + </div> + </a> + <div class="answer-link"> + <a href="/questions/{{answered_question.id}}/{{answered_question.title}}#{{answered_question.answer_id}}">{{answered_question.title}}</a> {% if answered_question.comment_count %}<span title="该回答有{{ answered_question.comment_count }}条评论">({{answered_question.comment_count}})</span>{% endif %} + </div> + </div> + {% endfor %} + </div> + <p> </p> + <a name="votes"></a> + <table> + <tr> + <td> + <div style="text-align: right;" class="count">{{total_votes}}</div> + </td> + <td > + <h2>个投票</h2> + </td> + </tr> + </table> + <div class="user-stats-table"> + <table height="50px"> + <tr> + <td width="60"> + <img style="cursor: default;" align="absmiddle" src="/content/images/vote-arrow-up-on.png"/> + <span title="该用户投的赞成票总数" class="vote-count">{{up_votes}}</span> + + </td> + <td width="60"> + <img style="cursor: default;" align="absmiddle" src="/content/images/vote-arrow-down-on.png"/> + <span title="用户投的反对票总数" class="vote-count">{{down_votes}}</span> + + </td> + </tr> + </table> + </div> + <p> </p> + <a name="tags"></a> + <table> + <tr> + <td> + <div style="text-align: right;" class="count">{{tags|length}}</div> + </td> + <td > + <h2>个标签</h2> + </td> + </tr> + </table> + <div class="user-stats-table"> + <table class="tags"> + <tr> + <td width="180" valign="top"> + {% for tag in tags%} + <a rel="tag" title="查看有关'{{ tag }}'的问题" href="{% url forum.views.tag tag|urlencode %}">{{tag.name}}</a><span class="tag-number"> × {{ tag.used_count|intcomma }}</span><br> + {% if forloop.counter|divisibleby:"10" %} + </td> + <td width="180" valign="top"> + {% endif %} + {% endfor %} + </td> + </tr> + </table> + </div> + <p> </p> + <a name="badges"></a> + <table> + <tr> + <td> + <div style="text-align: right;" class="count">{{total_awards}}</div> + </td> + <td > + <h2>枚奖牌</h2> + </td> + </tr> + </table> + <div class="user-stats-table"> + <table> + <tr> + <td width="180" style="line-height:35px"> + {% for award in awards %} + <a href="/badges/{{award.id}}/{{award.name}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">●</span> {{ award.name }}</a><span class="tag-number"> × {{ award.count|intcomma }}</span><br> + {% if forloop.counter|divisibleby:"6" %} + </td> + <td width="180" style="line-height:35px"> + {% endif %} + {% endfor %} + </td> + </tr> + </table> + </div> + +{% endblock %} |