Skip to content

Commit 9cef7ba

Browse files
committed
Fix placement of 'did you mean to search for...' text.
1 parent 3609ce9 commit 9cef7ba

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/templates/entry_list.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ <h3>Seeing results {{ start }} - {{ end }} out of {{ hits }}</h3>
2727
{% include "includes/searchbar.html" with form=search_form only %}
2828
</div>
2929

30+
{% if hits == 0 %}
31+
<div class="uk-text-center">
32+
<h3>No results were found matching the query</h3>
33+
</div>
34+
{% endif %}
35+
36+
{% if suggested_query %}
37+
<p class="uk-text-lead">
38+
Did you mean to search for
39+
<a href="?query={{ suggested_query }}&rows={{ rows }}" class="uk-text-italic">{{ suggested_query }}</a>?
40+
</p>
41+
{% endif %}
42+
3043
{% for entry in entries %}
3144
{% include "includes/entry_snippet.html" with entry=entry only %}
3245
{% endfor %}
@@ -40,19 +53,6 @@ <h3>Seeing results {{ start }} - {{ end }} out of {{ hits }}</h3>
4053
search results.
4154
{% endcomment %}
4255

43-
{% if hits == 0 %}
44-
<div class="uk-text-center">
45-
<h3>No results were found matching the query</h3>
46-
</div>
47-
{% endif %}
48-
49-
{% if suggested_query %}
50-
<p class="uk-text-lead">
51-
Did you mean to search for
52-
<a href="?query={{ suggested_query }}&rows={{ rows }}" class="uk-text-italic">{{ suggested_query }}</a>?
53-
</p>
54-
{% endif %}
55-
5656
{% if hits > 0 %}
5757
<div>
5858
<div class="uk-grid uk-text-center uk-width-1-1 paginator">

0 commit comments

Comments
 (0)