diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-11-27 10:16:46 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-12-23 09:50:39 +0100 |
commit | 6129b161650bf3dd8720bedbb14681e506894896 (patch) | |
tree | 473b8c76b98dbe5404c99eb11cb33185f33924ea | |
parent | 2179a418c41120185fe49530f2884ccd6653c260 (diff) | |
download | searxng-6129b161650bf3dd8720bedbb14681e506894896.tar.gz searxng-6129b161650bf3dd8720bedbb14681e506894896.zip |
[mod] simplify no results on pages > 1 to "There are no more results."
BTW: remove not needed whitespaces in the generated HTML
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | searx/templates/simple/messages/no_results.html | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/searx/templates/simple/messages/no_results.html b/searx/templates/simple/messages/no_results.html index 8144b5dd6..fb863cb9c 100644 --- a/searx/templates/simple/messages/no_results.html +++ b/searx/templates/simple/messages/no_results.html @@ -1,25 +1,28 @@ {% from 'simple/icons.html' import icon_big %} -<div class="dialog-error-block" role="alert"> - <p> +<div class="dialog-error-block" role="alert">{{- '' -}} + <p>{{- '' -}} <strong> {%- if pageno == 1 -%} {{ _('Sorry!') }} - {%- else -%} - {{ _("Oops!") }} {%- endif -%} - </strong> - </p> + </strong>{{- '' -}} + </p>{{- '' -}} <p> {%- if pageno == 1 -%} {{ _("No results were found. You can try to:") }} {%- else -%} - {{ _("Looks like there isn't any more results. You can try to:") }} + {{ _("There are no more results. You can try to:") }} {%- endif -%} - </p> + </p>{{- '' -}} <ul> - <li>{{ _("Refresh the page.") }}</li> - <li>{{ _("Search for another query or select another category (above).") }}</li> - <li>{{ _("Change the search engine used in the preferences:") }} <a href="/preferences">/preferences</a></li> - <li>{{ _("Switch to another instance:") }} <a href="https://searx.space">https://searx.space</a></li> + {%- if pageno == 1 -%} + <li>{{ _("Refresh the page.") }}</li>{{- '' -}} + <li>{{ _("Search for another query or select another category (above).") }}</li>{{- '' -}} + <li>{{ _("Change the search engine used in the preferences:") }} <a href="/preferences">/preferences</a></li>{{- '' -}} + <li>{{ _("Switch to another instance:") }} <a href="https://searx.space">https://searx.space</a></li>{{- '' -}} + {%- else -%} + <li>{{ _("Search for another query or select another category.") }}</li>{{- '' -}} + <li>{{ _("Go back to the previous page using the previous page button.") }}</li>{{- '' -}} + {%- endif -%} </ul> </div> |