From 973d05f9fb54026ee80bd096b76500134fd01277 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Mon, 3 Jul 2023 21:35:00 +0100 Subject: [PATCH] Modification to templates to make them more suitable on a stand alone website. --- templates/cave.html | 14 ++++++++------ templates/entrance_html.kml | 2 +- templates/menu.html | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/cave.html b/templates/cave.html index 0d91769..2996736 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -106,15 +106,17 @@

References

{{ cave.references|safe }} {% endif %} + +{% if not local %} {% if cave.get_QMs %}

QMs

QM page for {{ cave_id|safe }} {% endif %} - -

Scanned survey notes

-{{ cave_id|safe }} - +

Scanned survey notes

+ {{ cave_id|safe }} +{% endif %} + {% if cave.notes %}

Notes

{{ cave.notes|safe }} @@ -130,7 +132,7 @@ {{ ent.entrance_letter|safe }} {% if ent.entrance.name %} {{ ent.entrance.name|safe }} - {% endif %}Edit + {% endif %}Edit
{% if ent.entrance.marking %}
Marking
{{ ent.entrance.marking_val|safe }}
@@ -190,7 +192,7 @@ {% endif %}

-New Entrance +New Entrance

Survex File(s)

All survexfiles for this cave
diff --git a/templates/entrance_html.kml b/templates/entrance_html.kml index 48c694d..902102c 100644 --- a/templates/entrance_html.kml +++ b/templates/entrance_html.kml @@ -1,5 +1,5 @@
- Cave: {{entrance.cavelist.0.name }} + Cave: {{entrance.cavelist.0 }} {% if entrance.marking %}
Marking
{{ entrance.marking_val|safe }}
{% endif %} diff --git a/templates/menu.html b/templates/menu.html index 3014dce..8ef5bff 100644 --- a/templates/menu.html +++ b/templates/menu.html @@ -42,8 +42,8 @@
  • -{% if editable %}
  • Edit this page
  • {% endif %} -{% if cave_editable %}
  • Edit this cave
  • {% endif %} +{% if editable %}
  • Edit this page
  • {% endif %} +{% if cave_editable %}
  • Edit this cave
  • {% endif %} {% endif %}