summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/search_results.html
blob: 4d0be2f185903c751fb40544b9db3e2c66d4ef5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% from 'common.html' import disp_post %}
{% extends 'base.html' %}
{% block header %}
<h1>{%block title %}results for {{query}}{% endblock %}</h1>
{% endblock %}

{%block content%}
<div class="results">
    {% for result in results %}
    {% if display_thread_id[loop.index0] %}
        {% if loop.index0 != 0 %}
        </div>
        {% endif %}
        <h3><a href="{{url_for('thread.view_thread', thread_id=result.thread)}}">
            {{result.thread_title}}
        </a></h3>
        <div class="posts">
    {% endif %}
    {% call disp_post(result, False) %}
        {{ rendered_posts[loop.index0] | safe}}
    {% endcall %}
    {% endfor %}

    {% if results|length > 0 %}
        </div>
    {% else %}
        <p>no results were found for '{{query}}'.</p>
    {% endif %}
</div>
{% endblock %}