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">{{counter}}</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">{{counter}}</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">{{cnt}}</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">{{counter}}</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 class="tag-link-{{ tag.name }}"
107 title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
108 href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
109 <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
110 {% if forloop.counter|divisibleby:"10" %}
112 <td width="180" valign="top">
119 <a name="badges"></a>
122 {% blocktrans count total_awards as counter %}
123 <span class="count">{{counter}}</span> Badge
125 <span class="count">{{counter}}</span> Badges
129 <div class="user-stats-table">
131 <tr style="vertical-align: top;">
132 <td style="line-height:35px; padding-right: 20px;">
133 {% for award, count in awards %}
134 <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/>
135 {% if forloop.counter|divisibleby:"6" %}
137 <td width="180" style="line-height:35px">
145 <!-- end user_stats.html -->