diff --git a/templates/cave.html b/templates/cave.html index e76c3b8..24c0101 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -1,31 +1,7 @@ -{% extends "base.html" %} +{% extends "cavebase.html" %} {% load wiki_markup %} -{% block title %}{{ cave.official_name|wiki_to_html }}{% endblock %} - {% block content %} -
- {% if cave.kataster_number %}
- {{ cave.kataster_number|wiki_to_html_short }}
- {% if cave.entrancelist %}
- - {{ cave.entrancelist|wiki_to_html_short }}
- {% endif %}
- {% if cave.unofficial_number %}
- ({{ cave.unofficial_number|wiki_to_html_short }}) - {% endif %} - {% endif %} - |
- - {{ cave.official_name|wiki_to_html_short }} - | -- {{ cave.kataster_code|wiki_to_html_short }} - | -
---|
Entrances
{% for ent in cave.entrances %} diff --git a/templates/cavearea.html b/templates/cavearea.html new file mode 100644 index 0000000..9049225 --- /dev/null +++ b/templates/cavearea.html @@ -0,0 +1,9 @@ +{% extends "cavebase.html" %} +{% load wiki_markup %} + +{% block content %} +{{ cavearea.description }} +{{ cavearea.name }} +{{ cavearea.parentArea }} +{{ cavearea.survexFile }} +{% endblock %} \ No newline at end of file diff --git a/templates/cavebase.html b/templates/cavebase.html new file mode 100644 index 0000000..f546ebf --- /dev/null +++ b/templates/cavebase.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% load wiki_markup %} + +{% block title %}{{ cave.official_name|wiki_to_html }}{% endblock %} + +{% block contentheader %} +
+ {% if cave.kataster_number %}
+ {{ cave.kataster_number|wiki_to_html_short }}
+ {% if cave.entrancelist %}
+ - {{ cave.entrancelist|wiki_to_html_short }}
+ {% endif %}
+ {% if cave.unofficial_number %}
+ ({{ cave.unofficial_number|wiki_to_html_short }}) + {% endif %} + {% endif %} + |
+ + {{ cave.official_name|wiki_to_html_short }} + | ++ {{ cave.kataster_code|wiki_to_html_short }} + | +
---|