summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-09-05 21:46:10 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-09-05 21:46:10 +0300
commit8c721e905ad1276b510ad266bd54eb0d8b489038 (patch)
tree3531695bcbafbeb67679cba5012f4024b5aa7be1 /templates
parent8e2990ca7a2c08031d8434e138edc77df3229818 (diff)
downloadtroggle-8c721e905ad1276b510ad266bd54eb0d8b489038.tar.gz
troggle-8c721e905ad1276b510ad266bd54eb0d8b489038.tar.bz2
troggle-8c721e905ad1276b510ad266bd54eb0d8b489038.zip
New SurvexDirectory report
Diffstat (limited to 'templates')
-rw-r--r--templates/controlPanel.html1
-rw-r--r--templates/survexdir.html22
2 files changed, 23 insertions, 0 deletions
diff --git a/templates/controlPanel.html b/templates/controlPanel.html
index bc71ae2..b50821c 100644
--- a/templates/controlPanel.html
+++ b/templates/controlPanel.html
@@ -25,6 +25,7 @@
<li><a href="/aliases/2023">Expoer name aliases</a> -short names recognised by troggle
<li><a href="/dataissues">Data Issues on Imports</a> - warnings and errors from the recent data import
<li><a href="/survexfilewild/2023">Wild survex files</a> - survex files contianing blocks with no related wallet
+<li><a href="/survexdir">Survex Directories</a> - Every Cave has an associated directory and a Primary survex file
<li><a href="/surveximport">Survex import record</a> - indented *include and begin/end tree<br /><li><a href="/survexdebug">Survex debug report</a> - warnings and details<br />
<li><a href="/therionissues">Therion Import issues</a> - warnings from the recent data import<br /><br />
<li><a href="/admin/">Django admin</a> - Deep magic access to all models and data
diff --git a/templates/survexdir.html b/templates/survexdir.html
new file mode 100644
index 0000000..7600077
--- /dev/null
+++ b/templates/survexdir.html
@@ -0,0 +1,22 @@
+<!-- svxcavesingle.html - this text visible because this template has been included -->
+{% extends "base.html" %}
+{% block title %}List of survex directories{% endblock %}
+{% block content %}
+
+{% autoescape off %}
+<h1>SurvexDirectory objects</h1>
+{% endautoescape %}
+
+
+<table>
+<tr><th>Cave</th><th>CaveID</th><th>Path</th><th>Primary</th></tr>
+{% for sd in survexdirs %}
+ <tr>
+ <td><span {% if sd.cavebad %} style="color:red" {% endif %}> {{sd.cave}}</span></td>
+ <td><em>{{sd.cave.id}}</em></td>
+ <td>{{sd.path}}</td>
+ <td><a href="/survexfile/{{sd.primarysurvexfile}}"><span {% if sd.pathbad %} style="color:red" {% endif %}>{{sd.primarysurvexfile}}.svx</span></a><span {% if sd.primarybad %} style="color:blue"> <b>MISMATCH</b> {% endif %}</span></td>
+ </tr>
+{% endfor %}
+</table>
+{% endblock %}