diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 14 | ||||
-rw-r--r-- | templates/svxcavesingle.html | 2 | ||||
-rw-r--r-- | templates/svxfile.html | 34 | ||||
-rw-r--r-- | templates/svxfiledifflistonly.html | 18 |
4 files changed, 29 insertions, 39 deletions
diff --git a/templates/base.html b/templates/base.html index cd8da71..081d5a2 100644 --- a/templates/base.html +++ b/templates/base.html @@ -23,7 +23,7 @@ You are logged in as {{ user.username }} {% if user.person %}(<a href="{{ user.person.get_absolute_url }}">{{ user.person }}</a>) {% endif %}. - | <a href="{% url "auth_logout" %}">Log out</a> {% else %} <a href="{% url "registration_register" %}">Sign up</a> | <a href="{% url "auth_login" %}">Log in</a> {% endif %} + | <a href="{% url "auth_logout" %}">Log out</a> {% else %} <a href='{% url "registration_register" %}'>Sign up</a> | <a href='{% url "auth_login" %}'>Log in</a> {% endif %} {% endblock%} {% block editLink %} @@ -40,14 +40,9 @@ <a href="{% url "survexcavessingle" "204" %}">Surveys-204</a> | <a href="{% url "expedition" 2018 %}">Expo2018</a> | <a href="{% url "expedition" 2019 %}">Expo2019</a> | - - <br> - - <a id="cuccLink" href="https://camcaving.uk">cucc server</a> | <a id="expoWebsiteLink" href="http://expo.survex.com">expo server</a> | - <a href="{% url "frontpage" %}">tasks to do </a> | <a id="cavesLink" href="{% url "caveindex" %}">caves</a> | @@ -59,14 +54,11 @@ </div> <div id="nav"> - {% block nav %} <!-- Use id="nav" for the left side menu --> {% endblock %} </div> - - <div id="content" > {% block contentheader %} @@ -80,15 +72,11 @@ </script> {% endblock %} </div> - {% block content %} REPLACE : The content {% endblock %} - </div> - <div class="footer"> - </div> </body> </html> diff --git a/templates/svxcavesingle.html b/templates/svxcavesingle.html index 7ec5e92..3dc318a 100644 --- a/templates/svxcavesingle.html +++ b/templates/svxcavesingle.html @@ -9,7 +9,7 @@ {% autoescape off %} <h1>Surveys for <a href="/{{cave.url}}">{{cave.official_name}}</a> - kataster:{{cave}}</h1> {% endautoescape %} -<!-- the only thing passed into this temnplate is the object identifier for a cave. +<!-- the only thing passed into this temnlate is the object identifier for a cave. All the processing to extract the survex subdriectories and survex files is done in this template --> <p>Cave description: <a href="/{{cave.url}}">{{cave.url}}</a> diff --git a/templates/svxfile.html b/templates/svxfile.html index 84f734b..d9f1e86 100644 --- a/templates/svxfile.html +++ b/templates/svxfile.html @@ -1,13 +1,14 @@ {% extends "base.html" %} -{% load survex_markup %} +{% load survex_markup %} <!-- this is core/templatetags/survex_markup.py for syntax colouring --> {% block title %}{{ title }}{% endblock %} {% block head %} <script type="text/javascript" src="{{settings.MEDIA_URL }}js/base.js"></script> -<script type="text/javascript" src="{{settings.JSLIB_URL}}jquery-form/jquery.form.min.js"></script> <!-- INVALID--> -<script type="text/javascript" src="{{settings.JSLIB_URL}}codemirror/codemirror.min.js"></script> <!-- INVALID--> +<!-- <script type="text/javascript" src="{{settings.JSLIB_URL}}jquery-form/jquery.form.min.js"></script> <!-- INVALID--> +<!-- <script type="text/javascript" src="{{settings.JSLIB_URL}}codemirror/codemirror.min.js"></script> <!-- INVALID--> +<!-- Not in use and not needed for simple text editor jquery <script type="text/javascript"> var codeeditor; $(document).ready(function() @@ -33,16 +34,17 @@ $(document).ready(function() }); </script> +--> {% endblock %} {% block content %} <h1>Survex File: {{ title }}</h1> {% if svxincludes %} -<p><b>Included files:</b> -{% for svxinclude in svxincludes %} - <a href="{{svxinclude}}.svx">{{svxinclude}}</a> -{% endfor %} + <p><b>Included files:</b> + {% for svxinclude in svxincludes %} + <a href="{{svxinclude}}.svx">{{svxinclude}}</a> + {% endfor %} </p> {% endif %} @@ -61,15 +63,15 @@ $(document).ready(function() </pre> {% if logmessage %} -{% if has_3d %} -<p><a href="{% url "threed" title %}">3d file</a></p> -{% else %} -<p><b>No 3d file</b></p> -{% endif %} -<pre> -LOGMESSAGES -{{logmessage}} -</pre> + {% if has_3d %} + <p><a href='{% url "threed" title %}'>3d file</a></p> + {% else %} + <p><b>No 3d file</b></p> + {% endif %} + <pre> + LOGMESSAGES + {{logmessage}} + </pre> {% endif %} </div> diff --git a/templates/svxfiledifflistonly.html b/templates/svxfiledifflistonly.html index 7b0367a..b78c04d 100644 --- a/templates/svxfiledifflistonly.html +++ b/templates/svxfiledifflistonly.html @@ -5,14 +5,14 @@ </pre> {% if logmessage %} -{% if has_3d %} -<p><a href="{% url "threed" title %}">3d file</a></p> -{% else %} -<p><b>No 3d file</b></p> -{% endif %} -<pre> -LOGMESSAGES -{{logmessage}} -</pre> + {% if has_3d %} + <p><a href='{% url "threed" title %}'>3d file</a></p> + {% else %} + <p><b>No 3d file</b></p> + {% endif %} + <pre> + LOGMESSAGES + {{logmessage}} + </pre> {% endif %} |