0 %}
+ style="background:#ffff99;"
+ {% else %}
+ {% if question.ignored_score > 0 %}
+ style="background:#f3f3f3;"
+ {% endif %}
+ {% endif %}
+ {% endif %}
+ >
@@ -134,25 +151,18 @@
{% endblock %}
{% block tail %}
-
-
-
- {% cnprog_pagesize 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" %}
--
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