diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 12 | ||||
-rw-r--r-- | templates/cave.html | 76 | ||||
-rw-r--r-- | templates/caveindex.html | 10 | ||||
-rw-r--r-- | templates/entrance.html | 80 | ||||
-rw-r--r-- | templates/svxfile.html | 19 |
5 files changed, 197 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..cb84590 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}/css/main2.css" />
+ <title>{% block title %}{% endblock %}</title>
+</head>
+<body>
+ {% block content %}{% endblock %}
+ {% block footer %}{% endblock %}
+</body>
+</html>
\ No newline at end of file diff --git a/templates/cave.html b/templates/cave.html new file mode 100644 index 0000000..a043e7f --- /dev/null +++ b/templates/cave.html @@ -0,0 +1,76 @@ +{% extends "base.html" %}
+{% load wiki_markup %}
+
+{% block title %}{{ cave.official_name|wiki_to_html }}{% endblock %}
+
+{% block content %}
+<table id="cavepage">
+<tr>
+ <th id="kat_no">
+ {% if cave.kataster_number %}
+ {{ cave.kataster_number|wiki_to_html }}
+ {% if cave.entrancelist %}
+ - {{ cave.entrancelist|wiki_to_html }}
+ {% endif %}
+ {% if cave.unofficial_number %}
+ <br />({{ cave.unofficial_number|wiki_to_html }})
+ {% endif %}
+ {% endif %}
+ </th>
+ <th id="name">
+ {{ cave.official_name|wiki_to_html }}
+ </th>
+ <th id="status">
+ {{ cave.kataster_code|wiki_to_html }}
+ </th>
+</tr>
+</table>
+
+{% if cave.entrances %}
+ <h2>Entrances</h2>
+ {% for ent in cave.entrances %}
+ <a href = "./{{ ent.entrance_letter|wiki_to_html }}">{{ ent.entrance_letter|wiki_to_html }}</a>
+ {% if ent.entrance.marking %}
+ Marking: {{ ent.entrance.marking_val|wiki_to_html }}
+ {% 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 %}
\ No newline at end of file diff --git a/templates/caveindex.html b/templates/caveindex.html new file mode 100644 index 0000000..a19752f --- /dev/null +++ b/templates/caveindex.html @@ -0,0 +1,10 @@ +{% extends "base.html" %}
+{% load wiki_markup %}
+
+{% block title %}Cave Index{% endblock %}
+
+{% block content %}
+{% for cave in caves %}
+<p>{{ cave }} <a href="./{{ cave.kataster_number }}/">{{ cave.official_name|wiki_to_html }}</a> </p>
+{% endfor %}
+{% endblock %}
\ No newline at end of file diff --git a/templates/entrance.html b/templates/entrance.html new file mode 100644 index 0000000..7aa7fe8 --- /dev/null +++ b/templates/entrance.html @@ -0,0 +1,80 @@ +{% extends "base.html" %}
+{% load wiki_markup %}
+
+
+{% block title %}{{ cave.official_name|wiki_to_html }} - {{ entrance_letter|wiki_to_html }}{% endblock %}
+
+{% block content %}
+<table id="cavepage">
+<tr>
+ <th id="kat_no">
+ {% if cave.kataster_number %}
+ {{ cave.kataster_number|wiki_to_html }}{{ letter|wiki_to_html }}
+ {% if cave.unofficial_number %}
+ <br />({{ cave.unofficial_number|wiki_to_html }})
+ {% endif %}
+ {% endif %}
+ </th>
+ <th id="name">
+ {% if entrance.name %}
+ {{ entrance.name|wiki_to_html }}
+ {% else %}
+ Unnamed
+ {% endif %} - {{ cave.official_name|wiki_to_html }}
+ </th>
+ <th id="status">
+ {{ cave.kataster_code|wiki_to_html }}
+ </th>
+</tr>
+</table>
+
+{% if entrance.entrance_description %}
+ <h2>Entrance Description</h2>
+ {{ entrance.entrance_description|wiki_to_html }}
+{% endif %}
+{% if entrance.explorers %}
+ <h2>Explorers</h2>
+ {{ entrance.explorers|wiki_to_html }}
+{% endif %}
+{% if entrance.map_description %}
+ <h2>Map</h2>
+ {{ entrance.map_description|wiki_to_html }}
+{% endif %}
+{% if entrance.explorers %}
+ <h2>Entrance Description</h2>
+ {{ entrance.entrance_description|wiki_to_html }}
+{% endif %}
+{% if entrance.location_description %}
+ <h2>Location Description</h2>
+ {{ entrance.location_description|wiki_to_html }}
+{% endif %}
+{% if entrance.approach %}
+ <h2>Approach</h2>
+ {{ entrance.approach|wiki_to_html }}
+{% endif %}
+{% if entrance.underground_description %}
+ <h2>Underground Description</h2>
+ {{ entrance.underground_description|wiki_to_html }}
+{% endif %}
+{% if entrance.photo %}
+ <h2>Photo</h2>
+ {{ entrance.photo|wiki_to_html }}
+{% endif %}
+{% if entrance.marking %}
+ <h2>Marking - {{ entrance.marking_val|wiki_to_html }}</h2>
+ {% if entrance.marking_comment %}
+ {{ entrance.marking_comment|wiki_to_html }}
+ {% endif %}
+{% endif %}
+{% if entrance.findability %}
+ <h2>Findability - {{ entrance.findability_val|wiki_to_html }}</h2>
+ {% if entrance.findability_description %}
+ {{ entrance.findability_description|wiki_to_html }}
+ {% endif %}
+{% endif %}
+{% if entrance.bearings %}
+ <h2>Bearings</h2>
+ {{ entrance.bearings|wiki_to_html }}
+{% endif %}
+
+{% endblock %}
diff --git a/templates/svxfile.html b/templates/svxfile.html new file mode 100644 index 0000000..1fc4e1b --- /dev/null +++ b/templates/svxfile.html @@ -0,0 +1,19 @@ +{% extends "base.html" %}
+{% load survex_markup %}
+
+{% block title %}{{ title }}{% endblock %}
+{% block content %}
+ <H1>{{ title }}</H1>
+
+ <div><a href="{{ settings.SVX_URL }}{{ title }}.svx">Download svx file</a></div>
+ {% if has_3d %}
+ <div><a href="{{ settings.SVX_URL }}{{ title }}.3d">Download 3d file</a></div>
+ <div><a href="{{ settings.SVX_URL }}{{ title }}.err">Download err file</a></div>
+ {% else %}
+ <div>Processing failed</div>
+ {% endif %}
+ <div><a href="{{ settings.SVX_URL }}{{ title }}.log">Download log file</a></div>
+
+ {{ text|survex_to_html }}
+
+{% endblock %}
\ No newline at end of file |