From ef8f66ba6c7a22c277c6315df8040365b5684e6c Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 5 Aug 2009 22:50:08 -0400 Subject: added anonymous posting, per-question subscription and fixes by Pothers and some more, see development.log --- templates/questions.html | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'templates/questions.html') diff --git a/templates/questions.html b/templates/questions.html index a531d954..5dac0156 100644 --- a/templates/questions.html +++ b/templates/questions.html @@ -1,6 +1,5 @@ - {% extends "base.html" %} -{% load i18n %} + {% load extra_tags %} {% load i18n %} {% load humanize %} @@ -112,13 +111,20 @@ {% plural %} have total {{q_num}} questions tagged {{tagname}} {% endblocktrans %} - {% endif %} - {% if searchtitle %} - {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num %} - have total {{q_num}} questions containing {{searchtitle}} - {% plural %} - have total {{q_num}} questions containing {{searchtitle}} - {% endblocktrans %} + {% else %} + {% if searchtitle %} + {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num %} + have total {{q_num}} questions containing {{searchtitle}} + {% plural %} + have total {{q_num}} questions containing {{searchtitle}} + {% endblocktrans %} + {% else %} + {% blocktrans count questions as cnt with questions_count|intcomma as q_num %} + have total {{q_num}} questions + {% plural %} + have total {{q_num}} questions + {% endblocktrans %} + {% endif %} {% endif %} {% ifequal tab_id "latest" %} @@ -139,13 +145,15 @@

{% trans "Questions are sorted by the number of votes." %} {% trans "Most voted questions are shown first." %}

{% endifequal %} + +

{% trans "Related tags" %}

{% for tag in tags %} - + × {{ tag.used_count|intcomma }}
{% endfor %} -- cgit v1.2.3-1-g7c22 From 1eacc7a42618e84766477fbcc2c32a1da3547115 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Mon, 10 Aug 2009 21:40:01 -0400 Subject: untested commit. merged Adolfos mods, validated most of html, slugify urls, fixed IE issues in openid signin --- templates/questions.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'templates/questions.html') diff --git a/templates/questions.html b/templates/questions.html index 5dac0156..985b4921 100644 --- a/templates/questions.html +++ b/templates/questions.html @@ -126,24 +126,24 @@ {% endblocktrans %} {% endif %} {% endif %} - +
{% ifequal tab_id "latest" %} -

{% trans "latest questions info" %}

+ {% trans "latest questions info" %} {% endifequal %} {% ifequal tab_id "active" %} -

{% trans "Questions are sorted by the time of last update." %} - {% trans "Most recently answered ones are shown first." %}

+ {% trans "Questions are sorted by the time of last update." %} + {% trans "Most recently answered ones are shown first." %} {% endifequal %} {% ifequal tab_id "hottest" %} -

{% trans "Questions sorted by number of responses." %} - {% trans "Most answered questions are shown first." %}

+ {% trans "Questions sorted by number of responses." %} + {% trans "Most answered questions are shown first." %} {% endifequal %} {% ifequal tab_id "mostvoted" %} -

{% trans "Questions are sorted by the number of votes." %} - {% trans "Most voted questions are shown first." %}

+ {% trans "Questions are sorted by the number of votes." %} + {% trans "Most voted questions are shown first." %} {% endifequal %} @@ -154,10 +154,10 @@
{% for tag in tags %} - × {{ tag.used_count|intcomma }} -
+ ✕ {{ tag.used_count|intcomma }} +
{% endfor %} -
+
-- cgit v1.2.3-1-g7c22 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/questions.html | 45 ++++++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 15 deletions(-) (limited to 'templates/questions.html') diff --git a/templates/questions.html b/templates/questions.html index 985b4921..f298381e 100644 --- a/templates/questions.html +++ b/templates/questions.html @@ -4,6 +4,7 @@ {% load i18n %} {% load humanize %} {% load extra_filters %} +{% load smart_if %} {% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %} {% block forejs %} + var tags = {{ tags_autocomplete|safe }}; + $().ready(function(){ + var tab_id = "{{ tab_id }}"; + $("#"+tab_id).attr('className',"on"); + var on_tab = {% if is_unanswered %}'#nav_unanswered'{% else %}'#nav_questions'{% endif %}; + $(on_tab).attr('className','on'); + Hilite.exact = false; + Hilite.elementid = "listA"; + Hilite.debug_referrer = location.href; + }); + + + {% endblock %} {% block content %}
@@ -32,7 +35,11 @@ {% trans "Found by title" %} {% endif %} {% else %} - {% trans "All questions" %} + {% if is_unanswered %} + {% trans "Unanswered questions" %} + {% else %} + {% trans "All questions" %} + {% endif %} {% endif %} {% endif %}
@@ -45,7 +52,17 @@
{% for question in questions.object_list %} -
+
0 %} + style="background:#ffff99;" + {% else %} + {% if question.ignored_score > 0 %} + style="background:#f3f3f3;" + {% endif %} + {% endif %} + {% endif %} + >

{{ question.get_question_title }}

@@ -134,25 +151,18 @@ {% endblock %} {% block tail %} - -
- {% cnprog_paginator context %} - -
-
- {% cnprog_pagesize context %} -
- +
{% cnprog_paginator context %}
+
{% cnprog_pagesize context %}
{% endblock %} {% block sidebar %}
{% if searchtag %} - {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num and searchtag as tagname %} - have total {{q_num}} questions tagged {{tagname}} - {% plural %} - have total {{q_num}} questions tagged {{tagname}} - {% endblocktrans %} + {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num and searchtag as tagname %} + have total {{q_num}} questions tagged {{tagname}} + {% plural %} + have total {{q_num}} questions tagged {{tagname}} + {% endblocktrans %} {% else %} {% if searchtitle %} {% if settings.USE_SPHINX_SEARCH %} @@ -169,14 +179,22 @@ {% endblocktrans %} {% endif %} {% else %} - {% blocktrans count questions as cnt with questions_count|intcomma as q_num %} - have total {{q_num}} questions - {% plural %} - have total {{q_num}} questions - {% endblocktrans %} + {% if is_unanswered %} + {% blocktrans count questions as cnt with questions_count|intcomma as q_num %} + have total {{q_num}} unanswered questions + {% plural %} + have total {{q_num}} unanswered questions + {% endblocktrans %} + {% else %} + {% blocktrans count questions as cnt with questions_count|intcomma as q_num %} + have total {{q_num}} questions + {% plural %} + have total {{q_num}} questions + {% endblocktrans %} + {% endif %} {% endif %} {% endif %} -

+

{% ifequal tab_id "latest" %} {% trans "latest questions info" %} {% endifequal %} @@ -197,15 +215,17 @@ {% endifequal %}

+{% if request.user.is_authenticated %} +{% include "tag_selector.html" %} +{% endif %}

{% trans "Related tags" %}

{% for tag in tags %} - + × {{ tag.used_count|intcomma }}
{% endfor %} -
-- cgit v1.2.3-1-g7c22 From 4be0491e6adef6bf5817545ec9e050555066352f Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 9 Dec 2009 12:13:32 -0500 Subject: better selector of ignored questions, split javascript tag_selector into separate file, fixed question counter messages in the english lang file --- templates/questions.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'templates/questions.html') diff --git a/templates/questions.html b/templates/questions.html index 63026dc3..9387b345 100644 --- a/templates/questions.html +++ b/templates/questions.html @@ -20,7 +20,7 @@ }); - + {% endblock %} {% block content %}
@@ -57,8 +57,10 @@ {% if question.interesting_score > 0 %} style="background:#ffff99;" {% else %} - {% if question.ignored_score > 0 %} + {% if not request.user.hide_ignored_questions %} + {% if question.ignored_score > 0 %} style="background:#f3f3f3;" + {% endif %} {% endif %} {% endif %} {% endif %} -- cgit v1.2.3-1-g7c22