1 {% extends "user.html" %}
2 <!-- user_stats.html -->
5 {% load extra_filters %}
7 {% load question_list_tags %}
8 {% block usercontent %}
9 <div id="questionsBlock" class="userSection">
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 id="questionTabs">{{ 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>
33 <div id="answersBlock" class="userSection">
34 <a name="answers"></a>
37 {% blocktrans count answers.paginator.count as counter %}
38 <span class="count">{{counter}}</span> Answer
40 <span class="count">{{counter}}</span> Answers
44 <div id="answerTabs">{{ answers.paginator.sort_tabs }}</div>
45 <div class="user-stats-table">
46 {% for answer in answers.paginator.page %}
47 <div class="answer-summary">
48 <a title="{{answer.question.title}}"
49 href="{{ answer.get_absolute_url }}">
50 <span class="{% if answer.nis.accepted %}answered-accepted {% endif %} answer-votes"
51 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%}">
55 <div class="answer-link">
57 <a href="{{ answer.get_absolute_url }}">{{answer.headline}}</a>
64 <div class="pager">{{ answers.paginator.page_numbers }}</div>
72 {% blocktrans count total_votes as cnt %}
73 <span class="count">{{cnt}}</span> Vote
75 <span class="count">{{cnt}}</span> Votes
79 <div class="user-stats-table">
83 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
84 <span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
88 <img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
89 <span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
98 {% blocktrans count user_tags|length as counter %}
99 <span class="count">{{counter}}</span> Tag
101 <span class="count">{{counter}}</span> Tags
105 <div class="user-stats-table">
107 <tr style="vertical-align: top;">
108 <td valign="top" style="padding-right: 20px;">
109 {% for tag in user_tags%}
111 class="tag-link-{{ tag.name }}"
112 title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
113 href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
114 <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
115 {% if forloop.counter|divisibleby:"10" %}
117 <td width="180" valign="top">
124 <a name="badges"></a>
127 {% blocktrans count total_awards as counter %}
128 <span class="count">{{counter}}</span> Badge
130 <span class="count">{{counter}}</span> Badges
134 <div class="user-stats-table">
136 <tr style="vertical-align: top;">
137 <td style="line-height:35px; padding-right: 20px;">
138 {% for award, count in awards %}
140 <a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal">
141 <span class="badge{{ award.type }}">●</span> {{ award.name }}
143 {% ifnotequal count 1 %}
144 <span class="tag-number"> × {{ count|intcomma }}</span>
145 {% endifnotequal %}<br/>
146 {% if forloop.counter|divisibleby:"6" %}
148 <td width="180" style="line-height:35px">
157 <!-- end user_stats.html -->