From 026541b6a70cd183d49ffec205232cfb0b205b25 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 5 Aug 2009 22:49:44 -0400 Subject: added anonymous posting, per-question subscription and fixes by Pothers and some more, see development.log --- templates/question.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'templates/question.html') diff --git a/templates/question.html b/templates/question.html index 5ba08b63..eaff9da3 100644 --- a/templates/question.html +++ b/templates/question.html @@ -1,5 +1,8 @@ +{% extends "base.html" %} -{% extends "base.html" %}{% load extra_tags %}{% load extra_filters %}{% load humanize %} +{% load extra_tags %} +{% load extra_filters %} +{% load humanize %} {% load i18n %} {% block title %}{% spaceless %}{{ question.get_question_title }}{% endspaceless %}{% endblock %} {% block forejs %} @@ -250,10 +253,10 @@ {% endif %} - {% ifnotequal question.answer_count 0 %} + {% ifnotequal answers.length 0 %}
-
{{ question.answer_count }}{% trans "Answers" %}:
+
{{ answers|length }}{% trans "Answers" %}:
{% if not question.closed %} - {% if request.user.is_authenticated %}
{% trans "Your answer" %}:
+ {% if not request.user.is_authenticated %} +
{% trans "you can answer anonymously and then login" %}
+ {% endif %}
@@ -458,9 +463,11 @@

- {% else %} - - {% endif %} + {% if request.user.is_authenticated %} + {{ answer.email_notify }} + {% else %} + + {% endif %} {% endif %}

-- cgit v1.2.3-1-g7c22