Ver código fonte

[fix] add missing no_results.html template to simple theme

Adam Tauber 7 anos atrás
pai
commit
6254d360a3
1 arquivos alterados com 16 adições e 0 exclusões
  1. 16
    0
      searx/templates/simple/messages/no_results.html

+ 16
- 0
searx/templates/simple/messages/no_results.html Ver arquivo

@@ -0,0 +1,16 @@
1
+{% if unresponsive_engines %}
2
+<div class="alert alert-danger fade in" role="alert">
3
+    <p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
4
+    <p>
5
+        {% for engine_name, error_type in unresponsive_engines %}
6
+        {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
7
+        {% endfor %}
8
+    </p>
9
+    <p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
10
+</div>
11
+{% else %}
12
+<div class="alert alert-info fade in" role="alert">
13
+    <strong>{{ _('Sorry!') }}</strong>
14
+    {{ _('we didn\'t find any results. Please use another query or search in more categories.') }}
15
+</div>
16
+{% endif %}