X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/6b22f44c53cf0d72a7b2b068f51cae01e1129e23..a22e2d7df6fa02d2b32cfd731a40ddfc689e0270:/forum/skins/default/templates/users/stats.html
diff --git a/forum/skins/default/templates/users/stats.html b/forum/skins/default/templates/users/stats.html
index 35c344a..547f01e 100644
--- a/forum/skins/default/templates/users/stats.html
+++ b/forum/skins/default/templates/users/stats.html
@@ -7,49 +7,41 @@
{% load question_list_tags %}
{% block usercontent %}
- {% declare %}
- question_count = questions.count()
- show_more_questions_link = question_count > 15
- questions = questions[:15]
-
- answer_count = answers.count()
- show_more_answers_link = answer_count > 30
- answers = answers[:30]
- {% enddeclare %}
-
{% spaceless %}
- {% blocktrans count question_count as counter %}
+ {% blocktrans count questions.paginator.count as counter %}
1 Question
{% plural %}
{{counter}} Questions
{% endblocktrans %}
+
{% endspaceless %}
-
- {% for question in questions %}
+
{{ questions.paginator.sort_tabs }}
+
+ {% for question in questions.paginator.page %}
{% question_list_item question favorite_count=yes signature_type=badges %}
{% endfor %}
- {% if show_more_questions_link %}
-
- {% endif %}
+
+
+
{% spaceless %}
- {% blocktrans count answer_count as counter %}
+ {% blocktrans count answers.paginator.count as counter %}
1 Answer
{% plural %}
{{counter}} Answers
{% endblocktrans %}
{% endspaceless %}
+
{{ answers.paginator.sort_tabs }}
- {% for answer in answers %}
+ {% for answer in answers.paginator.page %}
{% endfor %}
- {% if show_more_answers_link %}
-
- {% endif %}
+
+
{% spaceless %}
@@ -141,7 +130,7 @@
{% for award, count in awards %}
- ● {{ award.name }} × {{ count|intcomma }}
+ ● {{ award.name }} × {{ count|intcomma }}
{% if forloop.counter|divisibleby:"6" %}
|
|