From 3032386852f72b4f10dba719c19ce163b17a8941 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 25 Jul 2025 14:58:05 +0200 Subject: [PATCH] Insert troggle menu on 4 pages for caves and entrances --- templates/cavebase.html | 11 ++++++++++- templates/caveindex.html | 3 --- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/templates/cavebase.html b/templates/cavebase.html index 1b7ebdb..e685475 100644 --- a/templates/cavebase.html +++ b/templates/cavebase.html @@ -4,13 +4,22 @@ -{% block title %}{{ cave.official_name|safe }}{% endblock %} +<title>{% block headtitle %}{{ cave.official_name|safe }}{% endblock %} {% block extraheaders %}{% endblock %} +{% if year %} + {% firstof year as current_year %} +{% else %} + {% now "Y" as current_year %} +{% endif %} +{% now "Y" as now_year %} +
+{% block toolbar %}{% include 'troggletoolbar.html' %}{% endblock %} +

{% block content %}{% endblock %} {% include "menu.html" %} diff --git a/templates/caveindex.html b/templates/caveindex.html index e522ada..2b8288b 100644 --- a/templates/caveindex.html +++ b/templates/caveindex.html @@ -1,13 +1,10 @@ {% extends "cavebase.html" %} - {% block title %}Cave Index{% endblock %} {% block content %}

Cave Index

- -

Notable caves