2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 13:10:05 +00:00

Better FileNotFound in expofiles

This commit is contained in:
Philip Sargent
2021-04-10 15:30:29 +01:00
parent a7e59b2bb0
commit 5d4ad93c51
3 changed files with 42 additions and 19 deletions

15
templates/expopage.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "expobase.html" %}
{% block title %}{{ title }}{% endblock %}
{% block bodyattrs %}{% if homepage %} id="homepage"{% endif %}{% endblock %}
{% block body %}
{{ body|safe }}
{% if homepage %}
{% if editable %}
<a href="{% url "editexpopage" path %}">Edit</a>
{% endif %}
{% else %}
{% if not has_menu %}
{% include "menu.html" %}
{% endif %}
{% endif %}
{% endblock %}