Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[mod] Change no results error message based on page number

obfuscated-loop2179a418c411
diff --git a/searx/templates/simple/messages/no_results.html b/searx/templates/simple/messages/no_results.html
index 8361276d0..8144b5dd6 100644
--- a/searx/templates/simple/messages/no_results.html
+++ b/searx/templates/simple/messages/no_results.html
@@ -1,7 +1,21 @@
{% from 'simple/icons.html' import icon_big %}
<div class="dialog-error-block" role="alert">
- <p><strong>{{ _('Sorry!') }}</strong></p>
- <p>{{ _("No results were found. You can try to:") }}</p>
+ <p>
+ <strong>
+ {%- if pageno == 1 -%}
+ {{ _('Sorry!') }}
+ {%- else -%}
+ {{ _("Oops!") }}
+ {%- endif -%}
+ </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:") }}
+ {%- endif -%}
+ </p>
<ul>
<li>{{ _("Refresh the page.") }}</li>
<li>{{ _("Search for another query or select another category (above).") }}</li>