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/index.html | 60 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 13 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 104b24d0..470612b4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,6 +4,7 @@ {% load extra_tags %} {% load humanize %} {% load extra_filters %} +{% load smart_if %} {% block title %}{% spaceless %}{% trans "Home" %}{% endspaceless %}{% endblock %} {% block meta %} {% endblock %} @@ -32,30 +33,31 @@ {% for question in questions %}

- - {{ question.get_question_title }} - + {{ question.get_question_title }}

- + - + - +
{{ question.answer_count|intcomma }} {{ question.score|intcomma }} {{ question.view_count|cnprog_intword|safe }}
{% trans "answers" %} {% trans "votes" %} {% trans "views" %}
+
- {{ question.summary}}... + {{ question.summary }}...
- {% if question.wiki %} + + {% ifequal tab_id 'active'%} + {% if question.wiki and settings.WIKI_ON %} {% trans "community wiki" %} - {% diff_date question.last_activity_at %} + {% diff_date question.added_at %} {% else %}
{% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %} @@ -64,6 +66,38 @@ {% diff_date question.last_activity_at %}
{% endif %} + {% else %} + {% if question.wiki and settings.WIKI_ON %} + {% trans "community wiki" %} + {% diff_date question.added_at %} + {% else %} +
+ {% comment %}{% gravatar question.author 24 %}{% endcomment %} + {% if question.last_activity_at != question.added_at %} + {% if question.author.id != question.last_activity_by.id %} + {% trans "Posted:" %} + {{ question.author }} + {% get_score_badge question.author %} + / {% trans "Updated:" %} + {{ question.last_activity_by }} + {% get_score_badge question.last_activity_by %} + {% diff_date question.last_activity_at %} + {% else %} + {% trans "Updated:" %} + {{ question.last_activity_by }} + {% get_score_badge question.last_activity_by %} + {% diff_date question.last_activity_at %} + {% endif %} + {% else %} + {% trans "Posted:" %} + {{ question.author }} + {% get_score_badge question.author %} + {% diff_date question.added_at %} + {% endif %} +
+ {% endif %} + {% endifequal %} +
{% for tag in question.tagname_list %} @@ -85,7 +119,7 @@
{% endif %} -
+

{% trans "Recent tags" %}

@@ -98,7 +132,7 @@
{% if awards %} -
+

{% trans "Recent awards" %}

    @@ -115,12 +149,12 @@
{% endif %} {% endblock %} {% block tail %}
-{% trans "Still looking for more? See" %} {% trans "complete list of questions" %} {% trans "or" %} {% trans "popular tags" %}{% trans "." %} {% trans "Please help us answer" %} {% trans "list of unanswered questions" %}{% trans "." %} +{% trans "Still looking for more? See" %} {% trans "complete list of questions" %} {% trans "or" %} {% trans "popular tags" %}{% trans "." %} {% trans "Please help us answer" %} {% trans "list of unanswered questions" %}{% trans "." %}
{% endblock %} -- cgit v1.2.3-1-g7c22