From 7e4f1d542e00b4d3121da6ae5524e95867f2371b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Nov 2009 20:18:55 -0500 Subject: better comments, email subscriptions, corrected view counter, some ie7 issues, wiki optional with settings.WIKI_ON, site can be mounted on arbitrary url prefix, english language improvements, added feedback form, versioned css and js files to force browser cache reload when settings.RESOURCE_REVISION is incremented , other fixes --- templates/user_stats.html | 70 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 58 insertions(+), 12 deletions(-) (limited to 'templates/user_stats.html') diff --git a/templates/user_stats.html b/templates/user_stats.html index 07578cb7..2b7949e8 100644 --- a/templates/user_stats.html +++ b/templates/user_stats.html @@ -7,43 +7,74 @@ {% block usercontent %} -

{{questions|length}} {% trans "User questions" %}

+ {% spaceless %} +

+ {% blocktrans count questions|length as counter %} + 1 Question + {% plural %} + {{counter}} Questions + {% endblocktrans %} +

+ {% endspaceless %} {% include "users_questions.html" %} -

{{answered_questions|length}} {% trans "Answers" %}

+ {% spaceless %} +

+ {% blocktrans count answered_questions|length as counter %} + 1 Answer + {% plural %} + {{counter}} Answers + {% endblocktrans %} +

+ {% endspaceless %}
{% for answered_question in answered_questions %}
+ href="{% url question answered_question.id %}{{answered_question.title|slugify}}#{{answered_question.answer_id}}"> {{ answered_question.vote_count }}
{% endfor %}
+
-

{{total_votes}} {% trans "Votes" %}

+ {% spaceless %} +

+ {% blocktrans count total_votes as cnt %} + 1 Vote + {% plural %} + {{cnt}} Votes + {% endblocktrans %} +

+ {% endspaceless %}
@@ -51,7 +82,15 @@
- {% trans + {% trans {{up_votes}} - {% trans + {% trans {{down_votes}}
-

{{tags|length}} {% trans "Tags" %}

+ {% spaceless %} +

+ {% blocktrans count tags|length as counter %} + 1 Tag + {% plural %} + {{counter}} Tags + {% endblocktrans %} +

+ {% endspaceless %}
@@ -59,7 +98,7 @@ {% for tag in tags%} × {{ tag.used_count|intcomma }}
+ href="{% url forum.views.tag tag|urlencode %}">{{tag.name}} × {{ tag.used_count|intcomma }}
{% if forloop.counter|divisibleby:"10" %}
@@ -70,7 +109,15 @@
-

{{total_awards}} {% trans "Badges" %}

+ {% spaceless %} +

+ {% blocktrans count total_awards as counter %} + 1 Badge + {% plural %} + {{counter}} Badges + {% endblocktrans %} +

+ {% endspaceless %}
@@ -86,6 +133,5 @@
- {% endblock %} -- cgit v1.2.3-1-g7c22