##// END OF EJS Templates
Code cleanup. Update only edited fields while performing thread archiving or post editing. Remove image when post is removed
Code cleanup. Update only edited fields while performing thread archiving or post editing. Remove image when post is removed

File last commit:

r707:64726435 default
r715:056b308f default
Show More
search.html
37 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 %}
{% if page.has_previous %}
<div class="page_link">
<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">
{% trans "Previous page" %}
</a>
</div>
{% endif %}
{% for result in page.object_list %}
{{ result.object.get_view }}
{% empty %}
<div class="post">{% trans 'No results found.' %}</div>
{% endfor %}
{% if page.has_next %}
<div class="page_link">
<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">
{% trans "Next page" %}
</a>
</div>
{% endif %}
{% endif %}
{% endblock %}