summaryrefslogtreecommitdiffstats
path: root/templates/millenialcaves.html
blob: 8e8c5c6f4f00a38056e592da4b528620dba63770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<html>
<head>


<link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}/css/cavetables.css">

</head>

<body>

<table>
<tr>
<th>Cave</th>
<th>Components</th>
<th>aaa</th>
<th>bbb</th>
</tr>


{% for subdircave, cavefiles, subsurvdirs in subdircaves %}
<tr>
  <td><b><a href="{% url "svx" cavefiles.0.0 %}">{{cavefiles.0.1}}</a></b></td>
  <td>
  root: {% for cavepath, cavename in cavefiles.1 %}
    <a href="{% url "svx" cavepath %}">{{cavename}}</a>
  {% endfor %}
  <br>
  {% for primarycavefile, subcavefiles in subsurvdirs %}
    {{ primarycavefile.1 }}:
    {% for cavepath, cavename in subcavefiles %}
       <a href="{% url "svx" cavepath %}">{{cavename}}</a>
    {% endfor %}
    <br>
  {% endfor %}
  </td>
</tr>
{% endfor %}

{% for primarycavefile, subcavefiles in multifilecaves %}
<tr>
  <td>
     <a href="{% url "survexcavessingle" primarycavefile.1 %}">{{primarycavefile.1}}</a>
  </td>
  <td>
    {% for cavepath, cavename in subcavefiles %}
       <a href="{% url "svx" cavepath %}">{{cavename}}</a>
    {% endfor %}
  </td>
</tr>
{% endfor %}


</table>



======================= OLD STUFF ==============================

<td><a href="{% url "svx" cavefiles.0.0 %}">{{cavefiles.0.1}}</a></td>

<p><a href="#cdir">caves with subdirectories</a> | <a href="#cmult">caves with multiple files</a> | <a href="#csing">caves with single files</a></p>

<h3><a href="/survexfile/all.svx">Link to all.svx for processing</a></h3>

<h2 id="cdir">Caves with subdirectories</h2>

{% for subdircave, cavefiles, subsurvdirs in subdircaves %}
<h3>{{cavefiles.0.1}} - <a href="{% url "survexcavessingle" cavefiles.0.1 %}">dates and explorers</a></h3>
<table>
<tr>
  <td><b><a href="{% url "svx" cavefiles.0.0 %}">{{cavefiles.0.1}}</a></b></td>
  <td>
  {% for cavepath, cavename in cavefiles.1 %}
    <a href="{% url "svx" cavepath %}">{{cavename}}</a>
  {% endfor %}
  </td>
</tr>

{% for primarycavefile, subcavefiles in subsurvdirs %}
<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>

{% endfor %}


<h2 id="cmult">Caves of multiple files</h2>
<table>
<tr><th>Dates and explorers</th><th>Survex files</th></tr>
{% for primarycavefile, subcavefiles in multifilecaves %}
<tr>
  <td>
     <a href="{% url "survexcavessingle" primarycavefile.1 %}">{{primarycavefile.1}}</a>
  </td>
  <td>
    <a href="{% url "svx" primarycavefile.0 %}">{{primarycavefile.1}}</a> -
    {% for cavepath, cavename in subcavefiles %}
       <a href="{% url "svx" cavepath %}">{{cavename}}</a>
    {% endfor %}
  </td>
</tr>
{% endfor %}
</table>

<h2 id="csing">Caves of one file</h2>
<p>
{% for cavepath, cavename in onefilecaves %}
   <a href="{% url "svx" cavepath %}">{{cavename}}</a>
{% endfor %}
</p>
<body>

<script type="text/javascript" src="scripts/TableSort.js"></script>

</html>