From: yomguy Date: Wed, 20 Feb 2013 09:59:01 +0000 (+0100) Subject: fix X-Git-Tag: 0.9-probarreau~10 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=faacc6efe77f051a61c48283912ccf450bd96909;p=teleforma.git fix --- diff --git a/teleforma/templates/teleforma/answer_detail.html b/teleforma/templates/teleforma/answer_detail.html index ed9b04da..4b205195 100644 --- a/teleforma/templates/teleforma/answer_detail.html +++ b/teleforma/templates/teleforma/answer_detail.html @@ -40,7 +40,7 @@ $('#reject').unbind('click').click(function() {
-

{% trans "Answer" %}{% if answer.question.rank %}n° {{ answer.question.rank }}{% endif %}

+

{% trans "Answer" %}{% if answer.question.rank %} n° {{ answer.question.rank }}{% endif %}

{{ answer.answer|safe }} diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 1c63ae3c..ad89a308 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -299,9 +299,9 @@ class AnswersView(ListView): path = reverse('teleforma-seminar-detail', kwargs={'pk':seminar.id}) if answer.question.seminar.sub_title: - title = seminar.sub_title + ' : ' + seminar.title + title = unicode(seminar.sub_title) + ' : ' + unicode(seminar.title) else: - title = seminar.title + title = unicode(seminar.title) auditor = user.auditor.all() if auditor: @@ -357,9 +357,9 @@ class AnswersView(ListView): 'pk': answer.question.pk}) if answer.question.seminar.sub_title: - title = seminar.sub_title + ' : ' + seminar.title + title = unicode(seminar.sub_title) + ' : ' + unicode(seminar.title) else: - title = seminar.title + title = unicode(seminar.title) auditor = user.auditor.all() if auditor: @@ -404,9 +404,9 @@ class AnswerDetailViewTest(DetailView): organization = seminar.course.department.name if answer.question.seminar.sub_title: - title = seminar.sub_title + ' : ' + seminar.title + title = unicode(seminar.sub_title) + ' : ' + unicode(seminar.title) else: - title = seminar.title + title = unicode(seminar.title) auditor = user.auditor.all() if auditor: