search.html
42 lines
| 1.2 KiB
| text/html
|
HtmlLexer
neko259
|
r706 | {% extends 'boards/base.html' %} | ||
{% load board %} | ||||
{% load i18n %} | ||||
neko259
|
r1040 | {% block head %} | ||
neko259
|
r1072 | <title>{% trans 'Search' %} - {{ site_name }}</title> | ||
neko259
|
r1040 | <meta name="robots" content="noindex"> | ||
{% endblock %} | ||||
neko259
|
r706 | {% block content %} | ||
<div class="post-form-w"> | ||||
neko259
|
r718 | <div class="post-form"> | ||
<form method="get" action=""> | ||||
{{ form.as_div }} | ||||
<div class="form-submit"> | ||||
neko259
|
r1072 | <input type="submit" value="{% trans 'Ok' %}"> | ||
neko259
|
r718 | </div> | ||
</form> | ||||
</div> | ||||
neko259
|
r706 | </div> | ||
neko259
|
r718 | {% if page %} | ||
neko259
|
r707 | {% if page.has_previous %} | ||
<div class="page_link"> | ||||
neko259
|
r718 | <a href="?query={{ query }}&page={{ page.previous_page_number }}">{% trans "Previous page" %} | ||
neko259
|
r707 | </a> | ||
</div> | ||||
{% endif %} | ||||
neko259
|
r706 | {% for result in page.object_list %} | ||
neko259
|
r1729 | {% post_view result truncated=True need_op_data=True %} | ||
neko259
|
r706 | {% endfor %} | ||
neko259
|
r707 | {% if page.has_next %} | ||
<div class="page_link"> | ||||
neko259
|
r719 | <a href="?query={{ query }}&page={{ page.next_page_number }}">{% trans "Next page" %} | ||
neko259
|
r707 | </a> | ||
neko259
|
r706 | </div> | ||
{% endif %} | ||||
{% endif %} | ||||
neko259
|
r922 | {% endblock %} | ||