From 854b1a93b65b39583e2bf845867ade9a58cb22c2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 14 Jun 2021 18:46:09 +0000 Subject: fix search results styling and template logic slightly --- apioforum/templates/search_results.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/apioforum/templates/search_results.html b/apioforum/templates/search_results.html index 7035e8f..4d0be2f 100644 --- a/apioforum/templates/search_results.html +++ b/apioforum/templates/search_results.html @@ -1,18 +1,30 @@ {% from 'common.html' import disp_post %} {% extends 'base.html' %} {% block header %} -

{%block title %}Results for {{query}}{% endblock %}

+

{%block title %}results for {{query}}{% endblock %}

{% endblock %} {%block content%}
{% for result in results %} {% if display_thread_id[loop.index0] %} -

{{ result.thread_title }}

+ {% if loop.index0 != 0 %} +
+ {% endif %} +

+ {{result.thread_title}} +

+
{% endif %} - {% call disp_post(result, True) %} + {% call disp_post(result, False) %} {{ rendered_posts[loop.index0] | safe}} {% endcall %} {% endfor %} + + {% if results|length > 0 %} +
+ {% else %} +

no results were found for '{{query}}'.

+ {% endif %} {% endblock %} -- cgit v1.2.3