1 {% extends "user.html" %}
2 <!-- user_stats.html -->
5 {% load extra_filters %}
7 {% load question_list_tags %}
8 {% block usercontent %}
10 <a name="questions"></a>
13 {% blocktrans count questions|length as counter %}
14 <span class="count">1</span> Question
16 <span class="count">{{counter}}</span> Questions
20 <div class="user-stats-table">
21 {% for question in questions %}
22 {% question_list_item question favorite_count=yes signature_type=badges %}
26 <a name="answers"></a>
29 {% blocktrans count answers|length as counter %}
30 <span class="count">1</span> Answer
32 <span class="count">{{counter}}</span> Answers
36 <div class="user-stats-table">
37 {% for answer in answers %}
38 <div class="answer-summary">
39 <a title="{{answer.question.title}}"
40 href="{{ answer.get_absolute_url }}">
41 <span class="{% if answer.accepted %}answered-accepted {% endif %} answer-votes"
42 title="{% blocktrans with answer.score as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answer.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
46 <div class="answer-link">
48 <a href="{{ answer.get_absolute_url }}">{{answer.headline}}</a>
58 {% blocktrans count total_votes as cnt %}
59 <span class="count">1</span> Vote
61 <span class="count">{{cnt}}</span> Votes
65 <div class="user-stats-table">
69 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
70 <span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
74 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
75 <span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
84 {% blocktrans count user_tags|length as counter %}
85 <span class="count">1</span> Tag
87 <span class="count">{{counter}}</span> Tags
91 <div class="user-stats-table">
94 <td width="180" valign="top">
95 {% for tag in user_tags%}
97 title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
98 href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
99 <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
100 {% if forloop.counter|divisibleby:"10" %}
102 <td width="180" valign="top">
109 <a name="badges"></a>
112 {% blocktrans count total_awards as counter %}
113 <span class="count">1</span> Badge
115 <span class="count">{{counter}}</span> Badges
119 <div class="user-stats-table">
122 <td width="180" style="line-height:35px">
123 {% for award, count in awards %}
124 <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"> × {{ count|intcomma }}</span><br/>
125 {% if forloop.counter|divisibleby:"6" %}
127 <td width="180" style="line-height:35px">
135 <!-- end user_stats.html -->