{% extends "base.html" %} {% load bbc %} {% block page_name %} {% if page %} Search Results for: {{ q }} {% else %} Search {% endif %} {% endblock %} {% block breadcrumb %} > Search {% if q %} > {{ q }} {% endif %} {% endblock %} {% block content %} {% if posts %} {% include "page_list.html" with page=page %} {% endif %}
{{ form.non_field_errors }}
{{ form.q.errors }} {{ form.q.label_tag }}
{{ form.q }}
{{ form.search_type.errors }} {{ form.search_type.label_tag }} {{ form.search_type }}
{{ form.author.errors }} {{ form.author.label_tag }} {{ form.author }}
{{ form.forum.errors }} {{ form.forum.label_tag }} {{ form.forum }}
{% if page %}

Search Results for "{{ q }}"

{% if form.cleaned_data.search_type == 'threads' %} {% include 'thread_list.html' with threads=page %} {% else %} {% include "post_list.html" with posts=page show_thread_context=True show_post_controls=False show_thanks_block=False %} {% endif %}
{% endif %}
{% if page %} {% include "page_list.html" with page=page %} {% endif %} {% endblock %} {% block js %} {% include "require.html" with bootstrap="auto-suggest-bootstrap" %} {% endblock %}