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.paginator.count as counter %}
14 <span class="count">1</span> Question
16 <span class="count">{{counter}}</span> Questions
18 <a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');"
19 href="{{ view_user.get_asked_url }}?type=rss" title="{% trans "subscribe to question RSS feed" %}"></a>
22 <div>{{ questions.paginator.sort_tabs }}</div>
23 <div id="listA" class="user-stats-table">
24 {% for question in questions.paginator.page %}
25 {% question_list_item question favorite_count=yes signature_type=badges %}
29 <div class="pager">{{ questions.paginator.page_numbers }}</div>
32 <a name="answers"></a>
35 {% blocktrans count answers.paginator.count as counter %}
36 <span class="count">1</span> Answer
38 <span class="count">{{counter}}</span> Answers
42 <div>{{ answers.paginator.sort_tabs }}</div>
43 <div class="user-stats-table">
44 {% for answer in answers.paginator.page %}
45 <div class="answer-summary">
46 <a title="{{answer.question.title}}"
47 href="{{ answer.get_absolute_url }}">
48 <span class="{% if answer.nis.accepted %}answered-accepted {% endif %} answer-votes"
49 title="{% blocktrans with answer.score as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answer.nis.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
53 <div class="answer-link">
55 <a href="{{ answer.get_absolute_url }}">{{answer.headline}}</a>
62 <div class="pager">{{ answers.paginator.page_numbers }}</div>
67 {% blocktrans count total_votes as cnt %}
68 <span class="count">1</span> Vote
70 <span class="count">{{cnt}}</span> Votes
74 <div class="user-stats-table">
78 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
79 <span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
83 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
84 <span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
93 {% blocktrans count user_tags|length as counter %}
94 <span class="count">1</span> Tag
96 <span class="count">{{counter}}</span> Tags
100 <div class="user-stats-table">
102 <tr style="vertical-align: top;">
103 <td valign="top" style="padding-right: 20px;">
104 {% for tag in user_tags%}
106 title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
107 href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
108 <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
109 {% if forloop.counter|divisibleby:"10" %}
111 <td width="180" valign="top">
118 <a name="badges"></a>
121 {% blocktrans count total_awards as counter %}
122 <span class="count">1</span> Badge
124 <span class="count">{{counter}}</span> Badges
128 <div class="user-stats-table">
130 <tr style="vertical-align: top;">
131 <td style="line-height:35px; padding-right: 20px;">
132 {% for award, count in awards %}
133 <a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">●</span> {{ award.name }}</a><span class="tag-number"> × {{ count|intcomma }}</span><br/>
134 {% if forloop.counter|divisibleby:"6" %}
136 <td width="180" style="line-height:35px">
144 <!-- end user_stats.html -->