diff options
Diffstat (limited to 'templates/cave.html')
-rw-r--r-- | templates/cave.html | 14 |
1 files changed, 8 insertions, 6 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 @@ <h2>References</h2> {{ cave.references|safe }} {% endif %} + +{% if not local %} {% if cave.get_QMs %} <h2>QMs</h2> <a href="{% url 'caveQMs' cave_id|safe %}">QM page for {{ cave_id|safe }}</a> {% endif %} - -<h2>Scanned survey notes</h2> -<a href="{% url "cavewallets" cave_id %}">{{ cave_id|safe }}</a> - + <h2>Scanned survey notes</h2> + <a href="{% url "cavewallets" cave_id %}">{{ cave_id|safe }}</a> +{% endif %} + {% if cave.notes %} <h2>Notes</h2> {{ cave.notes|safe }} @@ -130,7 +132,7 @@ {{ ent.entrance_letter|safe }} {% if ent.entrance.name %} {{ ent.entrance.name|safe }} - {% endif %}<a class="editlink" href="{% url "editentrance" ent.entrance.url_parent cave.slug ent.entrance.slug %}">Edit</a> + {% endif %}<a class="editlink" href="{% if local %}https://expo.survex.com{% endif %}{% url "editentrance" ent.entrance.url_parent cave.slug ent.entrance.slug %}">Edit</a> <dl> {% if ent.entrance.marking %} <dt>Marking</dt><dd>{{ ent.entrance.marking_val|safe }}</dd> @@ -190,7 +192,7 @@ </ul> {% endif %}</p> -<a class="editlink" href="{% url "newentrance" cave.url_parent cave.slug %}">New Entrance</a> +<a class="editlink" href="{% if local %}https://expo.survex.com{% endif %}{% url "newentrance" cave.url_parent cave.slug %}">New Entrance</a> </div> <h2>Survex File(s)</h2> All <a href="/survexfile/{{cave.kataster_number}}">survexfiles</a> for this cave <br /> |