浏览代码

[fix] fix no_results.html template of the simple theme

Alexandre Flament 7 年前
父节点
当前提交
14a8dd28c2
共有 1 个文件被更改,包括 12 次插入11 次删除
  1. 12
    11
      searx/templates/simple/messages/no_results.html

+ 12
- 11
searx/templates/simple/messages/no_results.html 查看文件

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