summaryrefslogtreecommitdiffstats
path: root/templates
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
commitc66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0 (patch)
tree60744b25a5b287c224b1cb279a763ec5ca751ec0 /templates
parent13fe89af9fe03382b25079f159c2bff27df32c0d (diff)
downloadtroggle-c66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0.tar.gz
troggle-c66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0.tar.bz2
troggle-c66ecc4d7fd4436a34700f7c1d4a2d879e8aabc0.zip
Allow pages to be rendered when the body tag has attributes. Put an edit link on the homepage.
Diffstat (limited to 'templates')
-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>