From 745ccd7f886444da4c90048a1a1015218f35891e Mon Sep 17 00:00:00 2001 From: Expo laptop Crowley <cucc.expedition@gmail.com> Date: Wed, 5 Jul 2023 19:04:55 +0200 Subject: [PATCH] Show when running locally --- templates/base.html | 1 + templates/menu.html | 1 + 2 files changed, 2 insertions(+) diff --git a/templates/base.html b/templates/base.html index e654edd..1f7c0c3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,6 +14,7 @@ <div id="header"> <h1>CUCC Expeditions to Austria: 1976 - 2022</h1> <div id="editLinks"> {% block loginInfo %} + {% if settings.DEVSERVER %}<b style="color:red">RUNNING ON LOCALSERVER</b>{% endif %} <a href="/">Home</a> | <a id="cuccLink" href="http://camcaving.uk/">CUCC</a> | <a id="expoWebsiteLink" href="http://expo.survex.com">expo.survex</a> | diff --git a/templates/menu.html b/templates/menu.html index 8ef5bff..4b15a5f 100644 --- a/templates/menu.html +++ b/templates/menu.html @@ -44,6 +44,7 @@ <input type=submit value="Search"></form></li> {% if editable %}<li><a href="{% if local %}https://expo.survex.com{% endif %}{% url "editexpopage" path %}" class="editlink"><strong>Edit this page</strong></a></li>{% endif %} {% if cave_editable %}<li><a href="{% if local %}https://expo.survex.com{% endif %}{% url "edit_cave" cave.url_parent cave.slug %}" class="editlink"><strong>Edit this cave</strong></a></li>{% endif %} +<li> {% if settings.DEVSERVER %}<b style="color:red">RUNNING ON LOCALSERVER</b>{% endif %} </ul> </div> {% endif %}