blob: 05087b6c33e1770decc1ed3f65c421ace0beabe0 (
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
|
<!-- users_questions.html -->
{% import "macros.html" as macros %}
<div class="user-stats-table">
{% for question in questions %}
{% if question.favourite_count %}
{% if question.favorited_myself %}
<div class="favorites-count">
<img
title="{% trans cnt=question.favourite_count %}this questions was selected as favorite {{cnt}} time{% pluralize %}this questions was selected as favorite {{cnt}} times{% endtrans %}"
alt="{% trans %}thumb-up on{% endtrans %}"
src="{{"/images/vote-favorite-on.png"|media}}"/>
<div><b>{{question.favourite_count|intcomma}}</b></div>
</div>
{% else %}
<div class="favorites-count-off">
<img
title="{% trans cnt=question.favourite_count %}this questions was selected as favorite {{cnt}} time{% pluralize %}this questions was selected as favorite {{cnt}} times{% endtrans %}"
alt="{% trans %}thumb-up off{% endtrans %}"
src="{{"/images/vote-favorite-off.png"|media}}"/>
<div><b>{{question.favourite_count|intcomma}}</b></div>
</div>
{% endif %}
{% else %}
<div class="favorites-empty"> </div>
{% endif %}
<div id="question-summary-{{question.id}}" class="short-summary narrow">
<div class="counts">
<div class="votes">
<span
class="item-count"
style="background:{{settings.COLORS_VOTE_COUNTER_MIN_BG}};color:{{settings.COLORS_VOTE_COUNTER_MIN_FG}}"
>{{question.score|humanize_counter}}</span>
<div>
{% trans cnt=question.score %}
vote
{% pluralize %}
votes
{% endtrans %}
</div>
</div >
{#
<div {% if question.answer_accepted %}title="{% trans %}this answer has been accepted to be correct{% endtrans %}"{% endif %} class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% if question.answer_count==0 %}unanswered{% endif %}{% if question.answer_count!=0 %}answered{% endif %}">
#}
<div class="votes">
<span
class="item-count"
{% if question.answer_accepted %}
style="background:{{settings.COLORS_ANSWER_COUNTER_ACCEPTED_BG}};color:{{settings.COLORS_ANSWER_COUNTER_ACCEPTED_FG}}"
{% else %}
style="background:{{settings.COLORS_ANSWER_COUNTER_MIN_BG}};color:{{settings.COLORS_ANSWER_COUNTER_MIN_FG}}"
{% endif %}
>{{question.answer_count|humanize_counter}}</span>
<div>
{% trans cnt=question.answer_count %}
answer
{% pluralize %}
answers
{% endtrans %}
</div>
</div>
<div class="votes">
<span class="item-count"
style="background:{{settings.COLORS_VIEW_COUNTER_MIN_BG}};color:{{settings.COLORS_VIEW_COUNTER_MIN_FG}}"
>{{question.view_count|humanize_counter}}</span>
<div>
{% trans cnt=question.view_count %}
view
{% pluralize %}
views
{% endtrans %}
</div>
</div>
</div>
<h2><a title="{{question.summary|escape}}" href="{% url question id=question.id %}{{question.title|slugify}}">{{question.title|escape}}</a></h2>
<div class="tags">
{% for tag in question.tagnames|split(' ') %}
<!--todo - move trans below to trans -->
<a href="{% url questions %}?tags={{tag|urlencode}}" title="{% trans %}see questions tagged '{{ tag }}'{% endtrans %}" rel="tag">{{ tag }}</a>
{% endfor %}
</div>
<div class="started">
<span class="relativetime" title="{{question.last_activity_at}}">{{question.last_activity_at|diff_date}}</span>
{% if question.la_username %}
<a
href="{% url users %}{{question.la_user_id}}/{{question.la_username}}"
>{{question.la_username}}</a>
{{ macros.user_score_and_badge_summary(
{
'reputation': question.la_user_reputaion,
'gold': question.la_user_gold,
'silver': question.la_user_silver,
'bronze': question.la_user_bronze,
}
)
}}
{% endif %}
</div>
</div>
<br clear="all"/>
{% endfor %}
</div>
<!-- end users_questions.html -->
|