summaryrefslogtreecommitdiffstats
path: root/templates/svxfile.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/svxfile.html')
-rw-r--r--templates/svxfile.html34
1 files changed, 18 insertions, 16 deletions
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>