summaryrefslogtreecommitdiffstats
path: root/templates/flatpage.html
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2011-08-08 10:04:59 +0100
committerMartin Green <martin.speleo@gmail.com>2011-08-08 10:04:59 +0100
commit4c4b6ef11febe13f6bb7db4510e115853aca50a5 (patch)
treec51a3fd57c252ff4f7273eaa7eff8575854de364 /templates/flatpage.html
parentd75bad22de7e41a7049f6873762f0c38a62cff30 (diff)
downloadtroggle-4c4b6ef11febe13f6bb7db4510e115853aca50a5.tar.gz
troggle-4c4b6ef11febe13f6bb7db4510e115853aca50a5.tar.bz2
troggle-4c4b6ef11febe13f6bb7db4510e115853aca50a5.zip
Allow pages to be rendered when the body tag has attributes. Put an edit link on the homepage.
Diffstat (limited to 'templates/flatpage.html')
-rw-r--r--templates/flatpage.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/flatpage.html b/templates/flatpage.html
index 42b8481..fddc69a 100644
--- a/templates/flatpage.html
+++ b/templates/flatpage.html
@@ -5,6 +5,8 @@
<body{% if homepage %} id="homepage"{% endif %}>
{{ body|safe }}
-{% include "menu.html" %}
+{% if homepage %}{% if editable %}<a href="{% url editflatpage path %}">Edit</a>{% endif %}{%else %}{% include "menu.html" %}{% endif %}
+
+
</body>
</html>