Drop Python 2 (2/n): templates
commit78df10fb55d9632ccae71d9f3b9260c7614a421c
authorDalf <alex@al-f.net>
dateTue 11 Aug 2020, 15:24 (6 years ago)
parent1022228
searx/templates/courgette/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/templates/legacy/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/templates/oscar/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="text-center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/templates/simple/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/webapp.py−2
@@ -408,8 +408,6 @@ def render(template_name, override_theme=None, **kwargs):
408408
409409 kwargs['results_on_new_tab'] = request.preferences.get_value('results_on_new_tab')
410410
411− kwargs['unicode'] = str
412−
413411 kwargs['preferences'] = request.preferences
414412
415413 kwargs['brand'] = brand