2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-30 08:09:50 +01:00

Allow pages to be rendered when the body tag has attributes. Put an edit link on the homepage.

This commit is contained in:
Martin Green
2011-08-08 10:04:59 +01:00
parent d75bad22de
commit 4c4b6ef11f
2 changed files with 4 additions and 2 deletions

View File

@@ -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>