summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:22:51 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:22:51 +0100
commitac097cb2d05800fbe583843125f3d393ff53a256 (patch)
tree48deaec7d74b829127d97eaaea41db30c7b62126
parent315a4ce2c7ede1268caa02b4f54141bd86615e50 (diff)
downloadtroggle-ac097cb2d05800fbe583843125f3d393ff53a256.tar.gz
troggle-ac097cb2d05800fbe583843125f3d393ff53a256.tar.bz2
troggle-ac097cb2d05800fbe583843125f3d393ff53a256.zip
[svn] Forgot to add cave and logbook search templates in earlier commit.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8084 by aaron @ 12/9/2008 1:31 AM
-rw-r--r--templates/cavesearch.html23
-rw-r--r--templates/logbooksearch.html21
2 files changed, 44 insertions, 0 deletions
diff --git a/templates/cavesearch.html b/templates/cavesearch.html
new file mode 100644
index 0000000..a555b44
--- /dev/null
+++ b/templates/cavesearch.html
@@ -0,0 +1,23 @@
+{% extends "base.html" %}
+{% load wiki_markup %}
+{% block title %}
+Cave search results for "{{ query_string }}"
+{% endblock%}
+
+{% block content %}
+
+<h1> Troggle cave search </h1>
+
+Your search string, <b>{{ query_string }}</b>,
+
+{% if found_entries %}
+ was found in the following <b>{{found_entries.count}}</b> cave underground descriptions and / or official names:
+ <ul>
+ {% for cave in found_entries %}
+ <li><a href="{{ settings.URL_ROOT }}cave/{{ cave.kataster_number }}">{{ cave|wiki_to_html_short }} : {{cave.official_name|wiki_to_html_short }}</a></li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ was not found in any cave underground descriptions and / or official names. Please try again.
+ {% endif %}
+{% endblock %} \ No newline at end of file
diff --git a/templates/logbooksearch.html b/templates/logbooksearch.html
new file mode 100644
index 0000000..2fc00f8
--- /dev/null
+++ b/templates/logbooksearch.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+{% load wiki_markup %}
+{% block title %}Logbook search results for "{{ query_string }}"{% endblock%}
+
+{% block content %}
+
+<h1> Troggle logbook search </h1>
+
+<p>Your search string, <b>{{ query_string }}</b>,
+
+{% if found_entries %}
+ was found in the following <b>{{entry.count}}</b> logbook titles and / or entries:</p>
+ <ul>
+ {% for entry in found_entries %}
+ <li><a href="{{ settings.URL_ROOT }}logbookentry/{{ entry.pk }}">{{ entry|wiki_to_html_short }} </a></li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ was not found in any logbook titles and / or entries. Please try again.
+ {% endif %}
+{% endblock %} \ No newline at end of file