on master help sign in
[fix] fix no_results.html template of the simple theme
14a8dd2Alexandre Flament
searx/templates/simple/messages/no_results.html+12−11
@@ -1,16 +1,17 @@
1+{% from 'simple/macros.html' import icon %}
1{% if unresponsive_engines %}
2{% if unresponsive_engines %}
2−<div class="alert alert-danger fade in" role="alert">
3+<div class="dialog-error" role="alert">
3− <p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
4+ <p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
4− <p>
5+ <p>
5− {% for engine_name, error_type in unresponsive_engines %}
6+ {% for engine_name, error_type in unresponsive_engines %}
6− {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
7+ {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
7− {% endfor %}
8+ {% endfor %}
8− </p>
9+ </p>
9− <p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
10+ <p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
10</div>
11</div>
11{% else %}
12{% else %}
12−<div class="alert alert-info fade in" role="alert">
13+<div class="dialog-error" role="alert">
13− <strong>{{ _('Sorry!') }}</strong>
14+ <p><strong>{{ _('Sorry!') }}</strong></p>
14− {{ _('we didn\'t find any results. Please use another query or search in more categories.') }}
15+ <p>{{ _('we didn\'t find any results. Please use another query or search in more categories.') }}</p>
15</div>
16</div>
16{% endif %}
17{% endif %}