Browse Source

Merge pull request #2387 from return42/issue-2383

[themes] add hyperlink to searx instances list in error message
Alexandre Flament 4 years ago
parent
commit
36235dfde2

+ 1 - 1
searx/templates/oscar/messages/no_results.html

@@ -7,7 +7,7 @@
         {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
         {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
         {% endfor %}
         {% endfor %}
     </p>
     </p>
-    <p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
+    <p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>)</small></p>
 </div>
 </div>
 {% else %}
 {% else %}
 <div class="alert alert-info fade in" role="alert">
 <div class="alert alert-info fade in" role="alert">

+ 1 - 1
searx/templates/simple/messages/no_results.html

@@ -7,7 +7,7 @@
     {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
     {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
     {% endfor %}
     {% endfor %}
   </p>
   </p>
-  <p><small>{{ _('Please, try again later or find another searx instance.') }}</small></p>
+  <p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>) </small></p>
 </div>
 </div>
 {% else %}
 {% else %}
 <div class="dialog-error" role="alert">
 <div class="dialog-error" role="alert">