From d810763107733cec017b8688c0350dff527f2ed1 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Mon, 22 Dec 2014 16:07:02 +0100 Subject: [enh] remove repeating codeparts inside the oscar template --- searx/templates/oscar/result_templates/map.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'searx/templates/oscar/result_templates/map.html') diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html index 343e713c8..6dfee52ba 100644 --- a/searx/templates/oscar/result_templates/map.html +++ b/searx/templates/oscar/result_templates/map.html @@ -1,10 +1,7 @@ -{% from 'oscar/macros.html' import icon %} +{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, icon %} -

{% if result['favicon'] %}{{ result['favicon'] }} {% endif %}{{ result.title|safe }}

- -{% if result.publishedDate %}{% endif %} - -{{ icon('link') }} {{ _('cached') }} +{{ result_header(result) }} +{{ result_sub_header(result) }} {% if (result.latitude and result.longitude) or result.boundingbox %} @@ -68,7 +65,4 @@ {% endif %} -
- -{{ result.engine }} -

{{ result.pretty_url }}

+{{ result_footer(result) }} -- cgit v1.2.3