diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 60 | ||||
-rw-r--r-- | templates/cave.html | 2 | ||||
-rw-r--r-- | templates/statistics.html | 8 |
3 files changed, 67 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index cb84590..6acd6ac 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,11 +2,67 @@ <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" />
+ <link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}css/main2.css" />
<title>{% block title %}{% endblock %}</title>
+
+<!-- script to toggle navbar -->
+
+<script language="javascript">
+<!--
+ function showFooter(){
+ document.getElementById('footerHidden').style.display = 'none';
+ document.getElementById('footerShowing').style.display = 'block';
+ }
+
+ function hideFooter(){
+ document.getElementById('footerHidden').style.display = 'block';
+ document.getElementById('footerShowing').style.display = 'none';
+ }
+
+ function makeTransparent(){
+ document.getElementById('footerShowing').style.backgroundColor = 'transparent';
+ }
+-->
+</script>
+
</head>
<body>
+<div class="contents">
+<div class="main">
{% block content %}{% endblock %}
- {% block footer %}{% endblock %}
+</div>
+ {% block footer %}
+
+<div class="footer" id="footerHidden" style="display:none">
+ <h4><a href="javascript:;" onMouseDown="showFooter();">[Show Troggle Navigation / Search]</a></h4>
+</div>
+
+<div class="footer" id="footerShowing" style="background-color:#CCC">
+ <h4 class="navbar"> Troggle navigation <a href="javascript:;" onMouseDown="hideFooter();">[Hide]</a> or <a href="javascript:;" onMouseDown="makeTransparent();">[Make transparent]</a></align></h4>
+ <table class="normal">
+ <tr>
+ <td rowspan="2">
+ <a href="{{ settings.URL_ROOT }}cave">list caves</a> or
+ <form name="input" action="{{ settings.URL_ROOT }}cavesearch" method="get">
+ <input type="text" name="q" value="search caves">
+ <input type="submit" value="Submit">
+ </form>
+ </td>
+ <td rowspan="2">
+ <a href="{{ settings.URL_ROOT }}logbookentry">list logbook entries</a> or
+ <form name="input" action="{{ settings.URL_ROOT }}logbooksearch" method="get">
+ <input type="text" name="q" value="search logbooks">
+ <input type="submit" value="Submit">
+ </form>
+ </td>
+ <td><a href="{{ settings.URL_ROOT }}person">list cavers</a></td>
+ <td><a href="{{ settings.URL_ROOT }}statistics"> statistics</a></td>
+ <tr>
+ <td><a href="{{ settings.URL_ROOT }}photos">photos</a></td>
+ <td><a href="{{ settings.URL_ROOT }}admin"> admin</a></td>
+ </table>
+</div>
+ <p>{% endblock %}</p>
</body>
+
</html>
\ No newline at end of file diff --git a/templates/cave.html b/templates/cave.html index e8c597e..e76c3b8 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -73,4 +73,4 @@ <h2>Notes</h2>
{{ cave.notes|wiki_to_html }}
{% endif %}
-{% endblock %}
\ No newline at end of file +{% endblock %}
diff --git a/templates/statistics.html b/templates/statistics.html new file mode 100644 index 0000000..1fddd67 --- /dev/null +++ b/templates/statistics.html @@ -0,0 +1,8 @@ +{% extends "base.html" %}
+{% load wiki_markup %}
+
+{% block title %}Database statistics{% endblock %}
+
+{% block content %}
+Over the course of {{ expoCount }} expeditions, {{ personCount }} people have contributed {{ caveCount }} caves and {{ logbookEntryCount }} logbook entries.
+{% endblock %}
\ No newline at end of file |