Move to src dir.
[edumed.git] / src / edumed / templates / search / search.html
diff --git a/src/edumed/templates/search/search.html b/src/edumed/templates/search/search.html
new file mode 100755 (executable)
index 0000000..4216ab9
--- /dev/null
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+
+{% block body %}
+    <h1>Wyszukiwanie</h1>
+
+    {% if query %}
+        {% for result in page.object_list %}
+            <p>
+                <a href="{{ result.object.get_absolute_url }}">{{ result.object.title }}</a>
+            </p>
+        {% empty %}
+            <p>Brak wyników.</p>
+        {% endfor %}
+
+        {% if page.has_previous or page.has_next %}
+            <div>
+                {% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Poprzednie{% if page.has_previous %}</a>{% endif %}
+                |
+                {% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Następne &raquo;{% if page.has_next %}</a>{% endif %}
+            </div>
+        {% endif %}
+    {% else %}
+        <p>Brak wyników.</p>
+    {% endif %}
+{% endblock %}