mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-26 17:21:52 +00:00
[svn] some file reading things
This commit is contained in:
parent
dc30f80ce4
commit
694fe4b4d8
@ -59,13 +59,6 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="eyeCandyFooterPopUps" class = "eyeCandy">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% block margins %}
|
|
||||||
<img class="leftMargin eyeCandy" src="{{ settings.MEDIA_URL }}eieshole.jpg">
|
|
||||||
<img class="rightMargin eyeCandy" src="{{ settings.MEDIA_URL }}goesser.jpg">
|
|
||||||
{% endblock margins %}
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="dropdown" id="footerLinks">
|
<ul class="dropdown" id="footerLinks">
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
{% if expedition %}
|
{% if expedition %}
|
||||||
<table>
|
<table>
|
||||||
<tr><td />
|
<tr><td />
|
||||||
{% for date in expedition.ListDays %}
|
{% for date in listdays %}
|
||||||
{% ifchanged date.month %}
|
{% ifchanged date.month %}
|
||||||
<td class="date">{{ date|date:"F" }}</td>
|
<td class="date">{{ date|date:"F" }}</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -46,31 +46,26 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td />
|
<tr><td />
|
||||||
{% for date in expedition.ListDays %}
|
{% for date in listdays %}
|
||||||
<td class="date">{{ date|date:"D" }}</td>
|
<td class="date">{{ date|date:"D" }}</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td />
|
<tr><td />
|
||||||
{% for date in expedition.ListDays %}
|
{% for date in listdays %}
|
||||||
<td class="date">{{ date|date:"d" }}</td>
|
<td class="date">{{ date|date:"d" }}</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% for personexpedition in expedition.personexpedition_set.all %}
|
{% for personexpedition, pelistdays in personexpeditiondays %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name">
|
<td class="name">
|
||||||
<a href="{{ personexpedition.person.get_absolute_url }}">{{ personexpedition.person }}</a>
|
<a href="{{ personexpedition.person.get_absolute_url }}">{{ personexpedition.person }}</a>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
{% if personexpedition.ListDaysTF %}
|
{% for peday in pelistdays %}
|
||||||
{% for dateTF in personexpedition.ListDaysTF %}
|
<td {{ peday|yesno:"class='yes',class='no'"|safe }}></td>
|
||||||
<td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
|
||||||
<td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
|
|
||||||
{% endif %}
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -44,15 +44,16 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{% if persontrip.get_previous_by_date %}
|
{% if persontrip.persontrip_prev %}
|
||||||
<a href="{{ persontrip.get_persons_previous_trip.logbook_entry.get_absolute_url }}">{{persontrip.get_persons_previous_trip.date}}</a>
|
<a href="{{ persontrip.persontrip_prev.logbook_entry.get_absolute_url }}">{{persontrip.persontrip_prev.date}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if persontrip.get_persons_next_trip %}
|
{% if persontrip.persontrip_next %}
|
||||||
<a href="{{ persontrip.get_persons_next_trip.logbook_entry.get_absolute_url }}">{{persontrip.get_persons_next_trip.date}}</a>
|
<a href="{{ persontrip.persontrip_next.logbook_entry.get_absolute_url }}">{{persontrip.persontrip_next.date}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
@ -31,7 +31,10 @@
|
|||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
{% for personexpedition in person.personexpedition_set.all %}
|
{% for personexpedition in person.personexpedition_set.all %}
|
||||||
<li> <a href="{{ personexpedition.get_absolute_url }}">{{personexpedition.expedition.year}}</a></li>
|
<li> <a href="{{ personexpedition.get_absolute_url }}">{{personexpedition.expedition.year}}</a>
|
||||||
|
<span style="padding-left:{{personexpedition.persontrip_set.all|length}}0px; background-color:red"></span>
|
||||||
|
{{personexpedition.persontrip_set.all|length}} trips
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
@ -27,37 +27,24 @@
|
|||||||
<h3>Table of all trips and surveys aligned by date</h3>
|
<h3>Table of all trips and surveys aligned by date</h3>
|
||||||
<div>
|
<div>
|
||||||
<table class="survexcontibutions">
|
<table class="survexcontibutions">
|
||||||
<tr><th>Date</th><th>Trips</th><th>Surveys</th></tr>
|
<tr><th>Date</th><th colspan="2">Trips</th><th colspan="2">Surveys</th></tr>
|
||||||
{% for persondate in personexpedition.GetPersonChronology %}
|
{% for persondate in personchronology %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="date">{{persondate.0}}</td>
|
<td class="date">{{persondate.0}}</td>
|
||||||
|
|
||||||
<td>
|
{% if persondate.1 %}
|
||||||
<table>
|
<td class="trip"><a href="{{ persondate.1.logbook_entry.get_absolute_url }}">{{persondate.1.logbook_entry.title|safe}}</a></td>
|
||||||
{% for persontrip in persondate.1.persontrips %}
|
<td><a href="{{ persondate.1.logbook_entry.cave.get_absolute_url }}">{{persondate.1.place|safe}}</a></td>
|
||||||
<tr>
|
{% else %}
|
||||||
<td class="trip"><a href="{{ persontrip.logbook_entry.get_absolute_url }}">{{persontrip.logbook_entry.title|safe}}</a></td>
|
<td colspan="2"> </td>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if persontrip.logbook_entry.cave %}
|
{% if persondate.2 %}
|
||||||
<td><a href="{{ persontrip.logbook_entry.cave.get_absolute_url }}">{{persontrip.place}}</a></td>
|
<td class="survexblock"><a href="{% url survexblock persondate.2.0 %}">{{persondate.2.0}}</a></td>
|
||||||
{% else %}
|
<td class="roles">{{persondate.2.1}}</td>
|
||||||
<td>{{persontrip.place}}</td>
|
{% else %}
|
||||||
{% endif %}
|
<td colspan="2"> </td>
|
||||||
</tr>
|
{% endif %}
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
<table>
|
|
||||||
{% for personsurvexroles in persondate.1.personroles.items %}
|
|
||||||
<tr>
|
|
||||||
<td class="survexblock"><a href="{% url survexblock personsurvexroles.0 %}">{{personsurvexroles.0}}</a></td>
|
|
||||||
<td class="roles">{{personsurvexroles.1}}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>Survex Block {{survexblock.survexpath}}</h2>
|
<h2>Survex Block {{survexblock.survexpath}}</h2>
|
||||||
|
|
||||||
|
<p>Link to <a href="{% url svx survexblock.filewithoutsvx %}">{{survexblock.begin_file}}</a></p>
|
||||||
|
|
||||||
<p>Needs duplicates removed from right hand column</p>
|
<p>Needs duplicates removed from right hand column</p>
|
||||||
<p>Needs links to survex file presentation</p>
|
<p>Needs links to survex file presentation</p>
|
||||||
<p>Needs to start dealing with misspellings of names (prob by editing the originals)</p>
|
<p>Needs to start dealing with misspellings of names (prob by editing the originals)</p>
|
||||||
|
@ -89,18 +89,18 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
</center>
|
</center>
|
||||||
<!-- <h4>Click to toggle:</h4>-->
|
<h4>Click to toggle:</h4>
|
||||||
<div id="surveyWalletNav">
|
<div id="surveyWalletNav">
|
||||||
<div id="notes" class="menuBarItem" "> {% if notes %}✓{% endif %}
|
<div id="notes" class="menuBarItem"> {% if notes %}✓{% endif %}
|
||||||
scanned notes </div>
|
scanned notes </div>
|
||||||
<div id="survexFile" class="menuBarItem" "> {% if current_survey.survex_file %}✓{% endif %}
|
<div id="survexFile" class="menuBarItem"> {% if current_survey.survex_file %}✓{% endif %}
|
||||||
survex file </div>
|
survex file </div>
|
||||||
<div id="printedCentreline" class="menuBarItem" "> {% if current_survey.centreline_printed_on %}✓{% endif %}
|
<div id="printedCentreline" class="menuBarItem"> {% if current_survey.centreline_printed_on %}✓{% endif %}
|
||||||
printed centreline </div>
|
printed centreline </div>
|
||||||
<div id="scannedPassageSketch" class="menuBarItem" "> {% if planSketches %}✓{% endif %}
|
<div id="scannedPassageSketch" class="menuBarItem"> {% if planSketches %}✓{% endif %}
|
||||||
scanned passage sketch </div>
|
scanned passage sketch </div>
|
||||||
<div id="tunnelXMLfile" class="menuBarItem" ">tunnel xml file</div>
|
<div id="tunnelXMLfile" class="menuBarItem">tunnel xml file</div>
|
||||||
<div id="mainSketchIntegration" class="menuBarItem" ">add to main sketch</div>
|
<div id="mainSketchIntegration" class="menuBarItem">add to main sketch</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -108,9 +108,9 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="mainContent">
|
<div id="mainContent" style="background:white">
|
||||||
|
|
||||||
<div id="progressTableContent" class="behind" style="overflow:auto">
|
<div id="progressTableContent" class="behind">
|
||||||
<h3>Survey progress table for {{ current_expedition }}</h3>
|
<h3>Survey progress table for {{ current_expedition }}</h3>
|
||||||
{% if current_expedition.survey_set.all %} <!-- if there are any surveys in the expedition, make the table -->
|
{% if current_expedition.survey_set.all %} <!-- if there are any surveys in the expedition, make the table -->
|
||||||
<table class="centre">
|
<table class="centre">
|
||||||
@ -152,7 +152,7 @@
|
|||||||
<center>[ There are no surveys in the database for this year. Put link in to add one. ]</center>
|
<center>[ There are no surveys in the database for this year. Put link in to add one. ]</center>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div id="notesContent" class="behind" style="overflow: auto">
|
<div id="notesContent" class="behind" >
|
||||||
<h3>Scanned notes for {{ current_survey }}.</h3>
|
<h3>Scanned notes for {{ current_survey }}.</h3>
|
||||||
{% for noteItem in notes %}
|
{% for noteItem in notes %}
|
||||||
<div class="figure">
|
<div class="figure">
|
||||||
|
@ -39,16 +39,14 @@ $(document).ready(function()
|
|||||||
<h1>Survex File: {{ title }} .svx</h1>
|
<h1>Survex File: {{ title }} .svx</h1>
|
||||||
|
|
||||||
<form id="codewikiform" action="" method="POST">
|
<form id="codewikiform" action="" method="POST">
|
||||||
|
<div class="codeframebit">{{form.code}}</div>
|
||||||
<div style="display:none">{{form.filename}} {{form.dirname}} {{form.datetime}} {{form.outputtype}}</div>
|
<div style="display:none">{{form.filename}} {{form.dirname}} {{form.datetime}} {{form.outputtype}}</div>
|
||||||
<input type="submit" name="diff" value="Diffy" />
|
<input type="submit" name="diff" value="Diffy" />
|
||||||
<input type="submit" name="save" value="Save"/>
|
<input type="submit" name="save" value="Save"/>
|
||||||
<input type="submit" name="process" value="Process" title="executes cavern"/>
|
<input type="submit" name="process" value="Process" title="executes cavern"/>
|
||||||
(Not implemented: <input type="submit" name="svncheckin" value="svn check-in"/>)
|
(Not implemented: <input type="submit" name="svncheckin" value="svn check-in"/>)
|
||||||
<div class="codeframebit">{{form.code}}</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h4>Output</h4>
|
|
||||||
|
|
||||||
<div id="difflistajax">
|
<div id="difflistajax">
|
||||||
<pre>
|
<pre>
|
||||||
{% for diffline in difflist %}{{diffline}}
|
{% for diffline in difflist %}{{diffline}}
|
||||||
@ -57,7 +55,7 @@ $(document).ready(function()
|
|||||||
|
|
||||||
{% if logmessage %}
|
{% if logmessage %}
|
||||||
{% if has_3d %}
|
{% if has_3d %}
|
||||||
<p><a href="{{ settings.SVX_URL }}{{ title }}.3d">3d file</a></p>
|
<p><a href="{% url threed title %}">3d file</a></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p><b>No 3d file</b></p>
|
<p><b>No 3d file</b></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
35
templates/svxfilecavelist.html
Normal file
35
templates/svxfilecavelist.html
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% load wiki_markup %}
|
||||||
|
{% load link %}
|
||||||
|
|
||||||
|
{% block title %}List of survex files{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>List of survex directories</h1>
|
||||||
|
|
||||||
|
<p>{{message}}</p>
|
||||||
|
|
||||||
|
<h2>Caves of multiple files</h2>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr><th>Primary file</th><th>Survex files</th></tr>
|
||||||
|
{% for primarycavefile, subcavefiles in multifilecaves %}
|
||||||
|
<tr>
|
||||||
|
<td><a href="{% url svx primarycavefile.0 %}">{{primarycavefile.1}}</a></td>
|
||||||
|
<td>
|
||||||
|
{% for cavepath, cavename in subcavefiles %}
|
||||||
|
<a href="{% url svx cavepath %}">{{cavename}}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h2>Caves of one file</h2>
|
||||||
|
<p>
|
||||||
|
{% for cavepath, cavename in onefilecaves %}
|
||||||
|
<a href="{% url svx cavepath %}">{{cavename}}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{% if logmessage %}
|
{% if logmessage %}
|
||||||
{% if has_3d %}
|
{% if has_3d %}
|
||||||
<p><a href="{{ settings.SVX_URL }}{{ title }}.3d">3d file</a></p>
|
<p><a href="{% url threed title %}">3d file</a></p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p><b>No 3d file</b></p>
|
<p><b>No 3d file</b></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user