on master help sign in
Merge pull request #994 from dalf/simple_fix

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

commit1012d63885e344a88e8602d28eb0ed830196e37f authorAdam Tauber <asciimoo@gmail.com> dateSun 13 Aug 2017, 10:43 (9 years ago) parent6254d3614a8dd2
1 file changed+12−11
searx/templates/simple/messages/no_results.html+12−11
searx/templates/simple/messages/no_results.html+12−11
@@ -1,16 +1,17 @@
1+{% from 'simple/macros.html' import icon %}
12{% 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>
1011</div>
1112{% 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>
1516</div>
1617{% endif %}