diff options
author | obfuscated-loop <codemailbox@protonmail.com> | 2023-11-21 23:31:09 +0000 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-12-23 09:50:39 +0100 |
commit | 2179a418c41120185fe49530f2884ccd6653c260 (patch) | |
tree | dfc6dbf40a6ae405fb488e8f4f6f782e554fed9e /searx/templates | |
parent | b4de72a96f7ca4fd7c9bf791a7be50309eb4fd49 (diff) | |
download | searxng-2179a418c41120185fe49530f2884ccd6653c260.tar.gz searxng-2179a418c41120185fe49530f2884ccd6653c260.zip |
[mod] Change no results error message based on page number
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/messages/no_results.html | 18 |
1 files changed, 16 insertions, 2 deletions
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> |