footer added
[koed-quiz.git] / apps / quiz / templates / quiz / result_detail.html
index 89b875c..4b04ef2 100755 (executable)
@@ -1,34 +1,35 @@
-{% extends "base.html" %}
+{% extends "quiz/base.html" %}
 {% load i18n %}
 {% load url from future %}
 
 
-{% block "body" %}
+{% block "title" %}{{ result.quiz.name }}{% endblock %}
+{% block "header" %}{{ result.quiz.name }}{% endblock %}
 
-<h1>{{ result.title }}</h1>
 
+{% block "body" %}
 
+<h2>{{ result.title }}</h2>
 
-<div>
-{{ result.text }}
-</div>
+{% if result.text %}
+    <div>
+    {{ result.text|safe }}
+    </div>
+{% endif %}
 
 
 
 {% if valid %}
     {% if previous_url %}
-        <a href='{{ previous_url }}'>{% trans "Back to last question" %}</a>
+        <a class='button' href='{{ previous_url }}'>{% trans "Back to last question" %}</a>
     {% endif %}
 {% else %}
     {% if valid_url %}
-        <a href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
-    {% else %}
-        <a href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
+        <a class='button' href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
     {% endif %}
 {% endif %}
 
 
-
-<a href='{% url "quiz" %}'>{% trans "Start again" %}</a>
+<a class='button' href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
 
 {% endblock %}