From 09c49d88261c2c2979f13a793c604448df01b6ab Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Wed, 1 Jul 2015 15:53:54 -0400 Subject: [PATCH 1/2] Use 'pageblock' instead of 'block' as django template var Because 'block' has the potential to conflict with django's 'block' templatetag. Closes github issue #29 --- pagetree/templates/pagetree/edit_page.html | 38 +++++++++++----------- pagetree/templates/pagetree/page.html | 16 ++++----- pagetree/templates/pagetree/test_page.html | 14 ++++---- pagetree/templates/pagetree/testblock.html | 2 +- 4 files changed, 35 insertions(+), 35 deletions(-) diff --git a/pagetree/templates/pagetree/edit_page.html b/pagetree/templates/pagetree/edit_page.html index 557b51c..ecff2a3 100644 --- a/pagetree/templates/pagetree/edit_page.html +++ b/pagetree/templates/pagetree/edit_page.html @@ -179,39 +179,39 @@

{{section.hierarchy.n

Drag the arrows to reorder pageblocks:

- {% for block in section.pageblock_set.all %} -
+ {% for pageblock in section.pageblock_set.all %} +
- {{block.label}} - {% rendersummary block %} + {{pageblock.label}} + {% rendersummary pageblock %}
- {% if block.block.exportable %} + {% if pageblock.block.exportable %} + id="export-{{pageblock.id}}" + href="{% url 'export-pageblock-json' pageblock.id %}"> export {% endif %}
@@ -222,29 +222,29 @@

{{section.hierarchy.n {% endfor %} - {% for block in section.pageblock_set.all %} -