From 57ecfe4a548a9e648cd7aea8b7c7ebedd3aea30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 3 Apr 2014 23:54:03 -0700 Subject: [PATCH] Make templates more modular --- templates/includes/book/footer.html | 15 +++++++++++++++ templates/includes/book/progress.html | 10 ++++++++++ templates/page.html | 27 ++------------------------- 3 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 templates/includes/book/footer.html create mode 100644 templates/includes/book/progress.html diff --git a/templates/includes/book/footer.html b/templates/includes/book/footer.html new file mode 100644 index 000000000..48f4bf90f --- /dev/null +++ b/templates/includes/book/footer.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/templates/includes/book/progress.html b/templates/includes/book/progress.html new file mode 100644 index 000000000..d0e31930a --- /dev/null +++ b/templates/includes/book/progress.html @@ -0,0 +1,10 @@ +
+
+
+
+
+ {% for p in progress.chapters %} + + {% endfor %} +
+
\ No newline at end of file diff --git a/templates/page.html b/templates/page.html index e726c956d..b5595f010 100644 --- a/templates/page.html +++ b/templates/page.html @@ -7,16 +7,7 @@ {% include "includes/book/summary.html" %}
-
-
-
-
-
- {% for p in progress.chapters %} - - {% endfor %} -
-
+ {% include "includes/book/progress.html" %}
{% for section in content %} @@ -30,21 +21,7 @@ {% endfor %}
- + {% include "includes/book/footer.html" %}