##// END OF EJS Templates
Added tag 1.8 for changeset 7f7c33ba6e3f
Added tag 1.8 for changeset 7f7c33ba6e3f

File last commit:

r692:d0013853 1.8-dev
r705:fe460c78 default
Show More
search.html
28 lines | 1.0 KiB | text/html | HtmlLexer
{% extends 'boards/base.html' %}
{% load board %}
{% load i18n %}
{% block content %}
<div class="post-form-w">
<h3>{% trans 'Search' %}</h3>
<form method="get" action=".">
{{ form.as_p }}
<input type="submit" value="{% trans 'Search' %}">
</form>
</div>
{% if query %}
{% for result in page.object_list %}
{{ result.object.get_view }}
{% empty %}
<div class="post">{% trans 'No results found.' %}</div>
{% 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; {% trans 'Previous' %}{% if page.has_previous %}</a>{% endif %}
{% if page.has_next %}<a href="?q={{ query }}&amp;page= {{ page.next_page_number }}">{% endif %}{% trans 'Next' %} &raquo; {% if page.has_next %}</a>{% endif %}
</div>
{% endif %}
{% endif %}
{% endblock %}