summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2019-02-23 15:30:58 +0000
committerSam Wenham <sam@wenhams.co.uk>2019-02-23 15:30:58 +0000
commit7f92a7280d94e4bf4dfa5507e35ad9ea540bd7bc (patch)
tree5f9f1791ea31f765974087ae879f248f3a3c18be /templates
parent019f8c055009933176735306c0693987d0353891 (diff)
downloadtroggle-7f92a7280d94e4bf4dfa5507e35ad9ea540bd7bc.tar.gz
troggle-7f92a7280d94e4bf4dfa5507e35ad9ea540bd7bc.tar.bz2
troggle-7f92a7280d94e4bf4dfa5507e35ad9ea540bd7bc.zip
Prevent troggle adding the menu if there is one in the file
Add a Docker compose file to bring up a dev troggle easily Various PEP improvments
Diffstat (limited to 'templates')
-rw-r--r--templates/core/expedition_list.html14
-rw-r--r--templates/flatpage.html10
2 files changed, 23 insertions, 1 deletions
diff --git a/templates/core/expedition_list.html b/templates/core/expedition_list.html
new file mode 100644
index 0000000..15baa6b
--- /dev/null
+++ b/templates/core/expedition_list.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+{% load wiki_markup %}
+{% load link %}
+
+{% block content %}
+<h1>Expeditions</h1>
+<ul>
+{% for expedition in object_list %}
+ <li>{{ expedition.year }} - <a href="{{ expedition.get_absolute_url }}">{{ expedition.name }}</a></li>
+{% empty %}
+ <li>No articles yet.</li>
+{% endfor %}
+</ul>
+{% endblock %} \ No newline at end of file
diff --git a/templates/flatpage.html b/templates/flatpage.html
index 2376159..73be1b2 100644
--- a/templates/flatpage.html
+++ b/templates/flatpage.html
@@ -3,5 +3,13 @@
{% block bodyattrs %}{% if homepage %} id="homepage"{% endif %}{% endblock %}
{% block body %}
{{ body|safe }}
-{% if homepage %}{% if editable %}<a href="{% url "editflatpage" path %}">Edit</a>{% endif %}{%else %}{% include "menu.html" %}{% endif %}
+{% if homepage %}
+ {% if editable %}
+ <a href="{% url "editflatpage" path %}">Edit</a>
+ {% endif %}
+ {%else %}
+ {% if not has_menu %}
+ {% include "menu.html" %}
+ {% endif %}
+ {% endif %}
{% endblock %}