From 23d367a3d2cd543924ad3a698ce3f44338182809 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 17 Jul 2016 14:28:29 +0200 Subject: [PATCH] Base template, which the children extend from --- templates/base.html | 36 ++++++++++++++++++++++++++++++++++++ templates/bookmarks.html | 21 +++++---------------- templates/index.html | 15 +++++---------- 3 files changed, 46 insertions(+), 26 deletions(-) create mode 100644 templates/base.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..3e62a35 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,36 @@ + + + + {% block title %}{% endblock %} - digimarks + + + +
+
+ + {% block pagecontent %} + + + + {% endblock %} +
+
+ + diff --git a/templates/bookmarks.html b/templates/bookmarks.html index 4960df5..2d7b1a8 100644 --- a/templates/bookmarks.html +++ b/templates/bookmarks.html @@ -1,15 +1,7 @@ - - - - digimarks bookmarks service - - - -
-
- +{% extends "base.html" %} +{% block title %}Bookmarks{% endblock %} +{% block pagetitle %}Bookmarks{% endblock %} +{% block pagecontent %}
    {% for bookmark in object_list %}
  • @@ -28,7 +20,4 @@ {% if page > 1 %}Previous{% endif %} {% if pagination.get_pages() > page %}Next{% endif %}
-
- - - +{% endblock %} diff --git a/templates/index.html b/templates/index.html index f5659fb..7acdb88 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,11 +1,6 @@ - - - - digimarks bookmarks service - - - -

digimarks

+{% extends "base.html" %} +{% block title %}digimarks{% endblock %} +{% block pagetitle %}digimarks{% endblock %} +{% block pagecontent %}

Please visit your personal url, or see the digimarks project page.

- - +{% endblock %}