diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/core/expedition_list.html | 14 | ||||
-rw-r--r-- | templates/flatpage.html | 10 |
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 %} |