+
<!DOCTYPE html>
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<!-- Before the quiz content -->
+<div class="container">
+
{% block content %}
{% endblock %}
+</div>
+
<!-- After the quiz content -->
{% block content %}
-<div class="container">
-
{% if cat_scores %}
<h1>Question Category Scores</h1>
{% endif %}
-</div>
{% endblock %}
{% block content %}
-<div class="container">
-
-
{% if previous %}
<p class="muted"><small>The previous question:</small></p>
{% endif %}
<hr>
- </div>
+
{% endblock %}
<h2>Category list</h2>
<ul>
- {% for cat in object_list %}
+ {% for cat in category_list %}
<li>
<a href="{% url 'quiz_category_list_matching' category_name=cat.category %}">
{{ cat.category }}
</ul>
{% endblock %}
-
-{% block right-sidebar %}
-<h2>Sponsored Advertisements</h2>
-{% endblock %}
{% block title %}All Quizzes{% endblock %}
{% block content %}
-<h2>Quiz list</h2>
+<h2>List of quizzes</h2>
{% if quiz_list %}
<ul>
{% for quiz in quiz_list %}
<p>There are no available quizzes.</p>
{% endif %}
{% endblock %}
-
-{% block right-sidebar %}
-<h2>Sponsored Advertisements</h2>
-{% endblock %}
{% load quiz_tags %}
-{% block title %} Exam Paper Result {% endblock %}
-{% block description %} Exam Results {% endblock %}
+{% block title %} {{ quiz.title}} {% endblock %}
+{% block description %} Exam Results for {{ quiz.title }} {% endblock %}
{% block content %}
-<div class="container">
-
{% if previous %}
<p class="muted"><small>The previous question:</small></p>
{% endif %}
-
-</div>
-
{% endblock %}
+++ /dev/null
-{% extends 'base.html' %}
-{% block title %}Progress{% endblock %}
-
-{% block content %}
-<h1>Sign up</h1>
-
-<p>Your current score is {{ anon_score }} out of {{ anon_possible }}</p>
-
-{% endblock %}
{% block content %}
-<div class="container">
{% if user.is_authenticated %}
<p>You have already sat this exam and only one sitting is permitted.</p>
<p>This exam is only accessible to signed in users.</p>
{% endif %}
-</div>
{% endblock %}
{% block title %}Quizzes related to {{ category.category }}{% endblock %}
{% block content %}
-<h1>Quizzes in {{ category.category }}</h1>
+<h1>Quizzes in the <strong>{{ category.category }} </strong>category</h1>
{% with object_list as quizzes %}
{% if quizzes %}
user_was_incorrect = True
else:
user_was_incorrect = False
- previous = {'answers': answers}
- return {'previous': previous,
+ return {'previous': {'answers': answers},
'user_was_incorrect': user_was_incorrect}