From 1f393025f1f1b1c2fbccd1c6733d83a4c8dd2fff Mon Sep 17 00:00:00 2001 From: Tom Walker Date: Sun, 20 Jul 2014 16:21:09 +0100 Subject: [PATCH] cleaning up templates --- quiz/templates/base.html | 5 +++++ quiz/templates/progress.html | 3 --- quiz/templates/question.html | 5 +---- quiz/templates/quiz/category_list.html | 6 +----- quiz/templates/quiz/quiz_list.html | 6 +----- quiz/templates/result.html | 9 ++------- quiz/templates/signup.html | 9 --------- quiz/templates/single_complete.html | 2 -- quiz/templates/view_quiz_category.html | 2 +- quiz/templatetags/quiz_tags.py | 3 +-- 10 files changed, 12 insertions(+), 38 deletions(-) delete mode 100644 quiz/templates/signup.html diff --git a/quiz/templates/base.html b/quiz/templates/base.html index de93368..aa953aa 100644 --- a/quiz/templates/base.html +++ b/quiz/templates/base.html @@ -1,3 +1,4 @@ + @@ -21,10 +22,14 @@ +
+ {% block content %} {% endblock %} +
+ diff --git a/quiz/templates/progress.html b/quiz/templates/progress.html index 224d0e5..44b2010 100644 --- a/quiz/templates/progress.html +++ b/quiz/templates/progress.html @@ -7,8 +7,6 @@ {% block content %} -
- {% if cat_scores %}

Question Category Scores

@@ -83,6 +81,5 @@ {% endif %} -
{% endblock %} diff --git a/quiz/templates/question.html b/quiz/templates/question.html index 8044515..325c37d 100644 --- a/quiz/templates/question.html +++ b/quiz/templates/question.html @@ -7,9 +7,6 @@ {% block content %} -
- - {% if previous %}

The previous question:

@@ -69,6 +66,6 @@ {% endif %}
-
+ {% endblock %} diff --git a/quiz/templates/quiz/category_list.html b/quiz/templates/quiz/category_list.html index 3963805..c58cd05 100644 --- a/quiz/templates/quiz/category_list.html +++ b/quiz/templates/quiz/category_list.html @@ -5,7 +5,7 @@

Category list

{% endblock %} - -{% block right-sidebar %} -

Sponsored Advertisements

-{% endblock %} diff --git a/quiz/templates/quiz/quiz_list.html b/quiz/templates/quiz/quiz_list.html index 39f9758..f0e0fda 100644 --- a/quiz/templates/quiz/quiz_list.html +++ b/quiz/templates/quiz/quiz_list.html @@ -2,7 +2,7 @@ {% block title %}All Quizzes{% endblock %} {% block content %} -

Quiz list

+

List of quizzes

{% if quiz_list %}