diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/controlPanel.html | 1 | ||||
-rw-r--r-- | templates/survexdir.html | 22 |
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 %} |