diff options
Diffstat (limited to 'apioforum/templates/search_results.html')
-rw-r--r-- | apioforum/templates/search_results.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apioforum/templates/search_results.html b/apioforum/templates/search_results.html new file mode 100644 index 0000000..7035e8f --- /dev/null +++ b/apioforum/templates/search_results.html @@ -0,0 +1,18 @@ +{% 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] %} + <h3><a href="{{url_for('thread.view_thread', thread_id=result.thread)}}">{{ result.thread_title }}</a></h3> + {% endif %} + {% call disp_post(result, True) %} + {{ rendered_posts[loop.index0] | safe}} + {% endcall %} + {% endfor %} +</div> +{% endblock %} |