fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Diplay changes
[koed-quiz.git]
/
apps
/
quiz
/
templates
/
quiz
/
question_detail.html
diff --git
a/apps/quiz/templates/quiz/question_detail.html
b/apps/quiz/templates/quiz/question_detail.html
index
c74742c
..
48e595b
100755
(executable)
--- a/
apps/quiz/templates/quiz/question_detail.html
+++ b/
apps/quiz/templates/quiz/question_detail.html
@@
-11,9
+11,11
@@
<h2>{{ question.title }}</h2>
<h2>{{ question.title }}</h2>
-<div>
-{{ question.text|safe }}
-</div>
+{% if question.test %}
+ <div>
+ {{ question.text|safe }}
+ </div>
+{% endif %}
<div>
<div>
@@
-33,9
+35,9
@@
{% else %}
{% if valid_url %}
{% else %}
{% if valid_url %}
- <a class='b
ig-b
utton' href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
+ <a class='button' href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
{% else %}
{% else %}
- <a class='b
ig-b
utton' href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
+ <a class='button' href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
@@
-43,9
+45,11
@@
</div>
</div>
-<div id='description'>
-{{ question.description|safe }}
-</div>
+{% if question.description %}
+ <div id='description'>
+ {{ question.description|safe }}
+ </div>
+{% endif %}
{% endblock %}
{% endblock %}