blob: 7313fac304bf190456c4683229045840756b8c02 (
plain)
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
|
{% extends "user.html" %}
<!-- user_stats.html -->
{% load i18n %}
{% load extra_tags %}
{% load extra_filters %}
{% load humanize %}
{% block usercontent %}
<a name="questions"></a>
<table>
<tr>
<td>
<div style="text-align: right;" class="count">{{questions|length}}</div>
</td>
<td>
<h2>{% trans "User questions" %}</h2>
</td>
</tr>
</table>
{% include "users_questions.html" %}
<p> </p>
<a name="answers"></a>
<table>
<tr>
<td>
<div style="text-align: right;" class="count">{{answered_questions|length}}</div>
</td>
<td >
<h2>{% trans "Answers" %}</h2>
</td>
</tr>
</table>
<div class="user-stats-table">
{% for answered_question in answered_questions %}
<div class="answer-summary">
<a title="{{answered_question.summary}}" href="{% url questions %}{{answered_question.id}}/{{answered_question.title}}#{{answered_question.answer_id}}">
<div class="answer-votes {% if answered_question.accepted %}answered-accepted{% endif %}"
title="{% blocktrans with answered_question.vote_count as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answered_question.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
{{ answered_question.vote_count }}
</div>
</a>
<div class="answer-link">
<a href="{% url questions %}{{answered_question.id}}/{{answered_question.title}}#{{answered_question.answer_id}}">{{answered_question.title}}</a> {% if answered_question.comment_count %}<span
title="{% blocktrans with answered_question.comment_count as comment_count %}the answer has been commented {{ comment_count }} times{% endblocktrans %}">({{answered_question.comment_count}})</span>{% endif %}
</div>
</div>
{% endfor %}
</div>
<p> </p>
<a name="votes"></a>
<table>
<tr>
<td>
<div style="text-align: right;" class="count">{{total_votes}}</div>
</td>
<td >
<h2>{% trans "votes total" %}</h2>
</td>
</tr>
</table>
<div class="user-stats-table">
<table height="50px">
<tr>
<td width="60">
<img style="cursor: default;" align="absmiddle" src="/content/images/vote-arrow-up-on.png"/>
<span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
</td>
<td width="60">
<img style="cursor: default;" align="absmiddle" src="/content/images/vote-arrow-down-on.png"/>
<span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
</td>
</tr>
</table>
</div>
<p> </p>
<a name="tags"></a>
<table>
<tr>
<td>
<div style="text-align: right;" class="count">{{tags|length}}</div>
</td>
<td >
<h2>{% trans "Tags" %}</h2>
</td>
</tr>
</table>
<div class="user-stats-table">
<table class="tags">
<tr>
<td width="180" valign="top">
{% for tag in tags%}
<a rel="tag"
title="{% blocktrans %}see other questions tagged '{{ tag }}' {% endblocktrans %}"
href="{% url forum.views.tag tag|urlencode %}">{{tag.name}}</a><span class="tag-number"> × {{ tag.used_count|intcomma }}</span><br/>
{% if forloop.counter|divisibleby:"10" %}
</td>
<td width="180" valign="top">
{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
<p> </p>
<a name="badges"></a>
<table>
<tr>
<td>
<div style="text-align: right;" class="count">{{total_awards}}</div>
</td>
<td >
<h2>{% trans "Badges" %}</h2>
</td>
</tr>
</table>
<div class="user-stats-table">
<table>
<tr>
<td width="180" style="line-height:35px">
{% for award in awards %}
<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"> × {{ award.count|intcomma }}</span><br/>
{% if forloop.counter|divisibleby:"6" %}
</td>
<td width="180" style="line-height:35px">
{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
{% endblock %}
<!-- end user_stats.html -->
|