- {% for question in questions.object_list %}
-
-
-
-
-
- {{ question.answer_count|intcomma }} |
- {{ question.score|intcomma }} |
- {{ question.view_count|cnprog_intword|safe }} |
-
-
- {% trans "answers" %} |
- {% trans "votes" %} |
- {% trans "views" %} |
-
-
-
-
-
- {{ question.summary }}...
-
-
- {% ifequal tab_id 'active'%}
- {% if question.wiki %}
-
{% trans "community wiki" %}
-
{% diff_date question.added_at %}
- {% else %}
-
- {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %}
-
{{ question.last_activity_by }}
-
{% get_score_badge question.last_activity_by %}
-
{% diff_date question.last_activity_at %}
-
- {% endif %}
- {% else %}
- {% if question.wiki %}
-
{% trans "community wiki" %}
-
{% diff_date question.added_at %}
- {% else %}
-
- {% comment %}{% gravatar question.author 24 %}{% endcomment %}
-
{{ question.author }}
-
{% get_score_badge question.author %}
-
{% diff_date question.added_at %}
-
- {% endif %}
- {% endifequal %}
-
-
-
- {% endfor %}
-
-
-{% endblock %}
-
-{% block tail %}
-
-
-
- {% 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 %}
- {% 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 %}
- {% endif %}
-
- {% ifequal tab_id "latest" %}
-
{% 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." %}
- {% endifequal %}
-
- {% ifequal tab_id "hottest" %}
-
{% 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." %}
- {% endifequal %}
-
-
-
-
-
Date: Fri, 10 Jul 2009 19:15:28 -0400
Subject: adding all files again
---
templates/questions.html | 158 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 158 insertions(+)
create mode 100644 templates/questions.html
(limited to 'templates/questions.html')
diff --git a/templates/questions.html b/templates/questions.html
new file mode 100644
index 00000000..21ac18ce
--- /dev/null
+++ b/templates/questions.html
@@ -0,0 +1,158 @@
+
+{% extends "base.html" %}
+{% load extra_tags %}
+{% load i18n %}
+{% load humanize %}
+{% load extra_filters %}
+{% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %}
+{% block forejs %}
+
+{% endblock %}
+{% block content %}
+
+
{% if searchtag %}{% trans "Found by tags" %}{% else %}{% if searchtitle %}{% trans "Found by title" %}{% else %}{% trans "All questions" %}{% endif %}{% endif %}
+
+
+
+ {% for question in questions.object_list %}
+
+
+
+
+
+ {{ question.answer_count|intcomma }} |
+ {{ question.score|intcomma }} |
+ {{ question.view_count|cnprog_intword|safe }} |
+
+
+ {% trans "answers" %} |
+ {% trans "votes" %} |
+ {% trans "views" %} |
+
+
+
+
+
+ {{ question.summary }}...
+
+
+ {% ifequal tab_id 'active'%}
+ {% if question.wiki %}
+
{% trans "community wiki" %}
+
{% diff_date question.added_at %}
+ {% else %}
+
+ {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %}
+
{{ question.last_activity_by }}
+
{% get_score_badge question.last_activity_by %}
+
{% diff_date question.last_activity_at %}
+
+ {% endif %}
+ {% else %}
+ {% if question.wiki %}
+
{% trans "community wiki" %}
+
{% diff_date question.added_at %}
+ {% else %}
+
+ {% comment %}{% gravatar question.author 24 %}{% endcomment %}
+
{{ question.author }}
+
{% get_score_badge question.author %}
+
{% diff_date question.added_at %}
+
+ {% endif %}
+ {% endifequal %}
+
+
+
+ {% endfor %}
+
+
+{% endblock %}
+
+{% block tail %}
+
+
+
+ {% 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 %}
+ {% 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 %}
+ {% endif %}
+
+ {% ifequal tab_id "latest" %}
+
{% 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." %}
+ {% endifequal %}
+
+ {% ifequal tab_id "hottest" %}
+
{% 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." %}
+ {% endifequal %}
+
+
+
+
+
+
{% trans "Related tags" %}
+
+
+
+{% endblock %}
+
--
cgit v1.2.3-1-g7c22
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 %}
+
+