1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{% extends "user.html" %}
<!-- user_stats.html -->
{% load i18n %}
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% load question_list_tags %}
{% block usercontent %}
<div id="questionsBlock" class="userSection">
<a name="questions"></a>
{% spaceless %}
<h2>
{% blocktrans count questions.paginator.count as counter %}
<span class="count">{{counter}}</span> Question
{% plural %}
<span class="count">{{counter}}</span> Questions
{% endblocktrans %}
<a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');"
href="{{ view_user.get_asked_url }}?type=rss" title="{% trans "subscribe to question RSS feed" %}"></a>
</h2>
{% endspaceless %}
<div id="questionTabs">{{ questions.paginator.sort_tabs }}</div>
<div id="listA" class="user-stats-table">
{% for question in questions.paginator.page %}
{% question_list_item question favorite_count=yes signature_type=badges %}
{% endfor %}
</div>
<br clear="all"/>
<div class="pager">{{ questions.paginator.page_numbers }}</div>
<br clear="all"/>
</div>
<div id="answersBlock" class="userSection">
<a name="answers"></a>
{% spaceless %}
<h2>
{% blocktrans count answers.paginator.count as counter %}
<span class="count">{{counter}}</span> Answer
{% plural %}
<span class="count">{{counter}}</span> Answers
{% endblocktrans %}
</h2>
{% endspaceless %}
<div id="answerTabs">{{ answers.paginator.sort_tabs }}</div>
<div class="user-stats-table">
{% for answer in answers.paginator.page %}
<div class="answer-summary">
<a title="{{answer.question.title}}"
href="{{ answer.get_absolute_url }}">
<span class="{% if answer.nis.accepted %}answered-accepted {% endif %} answer-votes"
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%}">
{{ answer.score }}
</span>
</a>
<div class="answer-link">
{% spaceless %}
<a href="{{ answer.get_absolute_url }}">{{answer.headline}}</a>
{% endspaceless %}
</div>
</div>
{% endfor %}
</div>
<br clear="all"/>
<div class="pager">{{ answers.paginator.page_numbers }}</div>
<br clear="all"/>
</div>
<a name="votes"></a>
{% spaceless %}
<h2>
{% blocktrans count total_votes as cnt %}
<span class="count">{{cnt}}</span> Vote
{% plural %}
<span class="count">{{cnt}}</span> Votes
{% endblocktrans %}
</h2>
{% endspaceless %}
<div class="user-stats-table">
<table>
<tr>
<td width="60">
<img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
<span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
</td>
<td width="60">
<img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
<span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
</td>
</tr>
</table>
</div>
<a name="tags"></a>
{% spaceless %}
<h2>
{% blocktrans count user_tags|length as counter %}
<span class="count">{{counter}}</span> Tag
{% plural %}
<span class="count">{{counter}}</span> Tags
{% endblocktrans %}
</h2>
{% endspaceless %}
<div class="user-stats-table">
<table class="tags">
<tr style="vertical-align: top;">
<td valign="top" style="padding-right: 20px;">
{% for tag in user_tags%}
<a rel="tag"
class="tag-link-{{ tag.name }}"
title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
<span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
{% if forloop.counter|divisibleby:"10" %}
</td>
<td width="180" valign="top">
{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
<a name="badges"></a>
{% spaceless %}
<h2>
{% blocktrans count total_awards as counter %}
<span class="count">{{counter}}</span> Badge
{% plural %}
<span class="count">{{counter}}</span> Badges
{% endblocktrans %}
</h2>
{% endspaceless %}
<div class="user-stats-table">
<table>
<tr style="vertical-align: top;">
<td style="line-height:35px; padding-right: 20px;">
{% for award, count in awards %}
{% spaceless %}
<a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal">
<span class="badge{{ award.type }}">●</span> {{ award.name }}
</a>
{% ifnotequal count 1 %}
<span class="tag-number"> × {{ count|intcomma }}</span>
{% endifnotequal %}<br/>
{% if forloop.counter|divisibleby:"6" %}
</td>
<td width="180" style="line-height:35px">
{% endif %}
{% endspaceless %}
{% endfor %}
</td>
</tr>
</table>
</div>
{% endblock %}
<!-- end user_stats.html -->