summaryrefslogtreecommitdiffstats
path: root/templates/cave.html
blob: d76a211257547c332c7618fcbe62c3e6d5aff06a (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
{% extends "cavebase.html" %}
{% load wiki_markup %}
{% block editLink %}<a href={{cave.get_admin_url}}>Edit cave {{cave|wiki_to_html_short}}</a>{% endblock %}
{% block content %}

<div id="col2">
  <h3>All trips done in this cave</h3>
  <table>
  {% for logbookentry in cave.logbookentry_set.all %}
  {% if logbookentry.title %}
    <tr>
      <td>{{logbookentry.date}}</td>
      <td><a href="{{ logbookentry.get_absolute_url }}">{{logbookentry.title|safe}}</a></td>
    </tr>
  {% endif %}
  {% endfor %}
  </table>
</div>

{% if cave.entrances %}
    <h2>Entrances</h2>
    {% for ent in cave.entrances %}
        <a href = "./{{ ent.entrance_letter|wiki_to_html_short }}">{{ ent.entrance_letter|wiki_to_html_short }}</a>
        {% if ent.entrance.marking %}
            Marking: {{ ent.entrance.marking_val|wiki_to_html_short }}
        {% endif %}
        <br>
    {% endfor %}
{% endif %}

{% if cave.explorers %}
    <h2>Explorers</h2>
    {{ cave.explorers|wiki_to_html }}
{% endif %}
{% if cave.underground_description %}
    <h2>Underground Description</h2>
    {{ cave.underground_description|wiki_to_html }}
{% endif %}
{% if cave.equipment %}
    <h2>Equipment</h2>
    {{ cave.equipment|wiki_to_html }}
{% endif %}
{% if cave.references %}
    <h2>References</h2>
    {{ cave.references|wiki_to_html }}
{% endif %}
{% if cave.survey %}
    <h2>Survey</h2>
    {{ cave.survey|wiki_to_html }}
{% endif %}
{% if cave.kataster_status %}
    <h2>Kataster_status</h2>
    {{ cave.kataster_status|wiki_to_html }}
{% endif %}
{% if cave.underground_centre_line %}
    <h2>Underground Centre Line</h2>
    {{ cave.underground_centre_line|wiki_to_html }}
{% endif %}
{% if cave.survex_file %}
    <h2>Survex File</h2>
    {{ cave.survex_file|wiki_to_html }}
{% endif %}
{% if cave.notes %}
    <h2>Notes</h2>
    {{ cave.notes|wiki_to_html }}
{% endif %}
{% endblock %}