1 {% extends "user.html" %}
2 <!-- user_stats.html -->
5 {% load extra_filters %}
7 {% block usercontent %}
9 <a name="questions"></a>
12 {% blocktrans count questions|length as counter %}
13 <span class="count">1</span> Question
15 <span class="count">{{counter}}</span> Questions
19 {% include "users_questions.html" %}
20 <a name="answers"></a>
23 {% blocktrans count answered_questions|length as counter %}
24 <span class="count">1</span> Answer
26 <span class="count">{{counter}}</span> Answers
30 <div class="user-stats-table">
31 {% for answered_question in answered_questions %}
32 <div class="answer-summary">
33 <a title="{{answered_question.summary|collapse}}"
34 href="{% url question answered_question.id %}{{answered_question.title|slugify}}#{{answered_question.answer_id}}">
35 <span class="answer-votes {% if answered_question.accepted %}answered-accepted{% endif %}"
36 title="{% blocktrans with answered_question.vote_count as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answered_question.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
37 {{ answered_question.vote_count }}
40 <div class="answer-link">
42 <a href="{% url question answered_question.id %}{{answered_question.title|slugify}}#{{answered_question.answer_id}}">{{answered_question.title}}</a>
44 {% if answered_question.comment_count %}
46 {% blocktrans count answered_question.comment_count as comment_count %}
49 the answer has been commented {{comment_count}} times
61 {% blocktrans count total_votes as cnt %}
62 <span class="count">1</span> Vote
64 <span class="count">{{cnt}}</span> Votes
68 <div class="user-stats-table">
72 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
73 <span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
77 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
78 <span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
87 {% blocktrans count user_tags|length as counter %}
88 <span class="count">1</span> Tag
90 <span class="count">{{counter}}</span> Tags
94 <div class="user-stats-table">
97 <td width="180" valign="top">
98 {% for tag in user_tags%}
100 title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
101 href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
102 <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
103 {% if forloop.counter|divisibleby:"10" %}
105 <td width="180" valign="top">
112 <a name="badges"></a>
115 {% blocktrans count total_awards as counter %}
116 <span class="count">1</span> Badge
118 <span class="count">{{counter}}</span> Badges
122 <div class="user-stats-table">
125 <td width="180" style="line-height:35px">
126 {% for award in awards %}
127 <a href="{% url 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/>
128 {% if forloop.counter|divisibleby:"6" %}
130 <td width="180" style="line-height:35px">
138 <!-- end user_stats.html -->