From 2e7723a6c1ce51c6b3830470164ac818126760ae Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Mon, 3 Nov 2014 10:39:47 +0100 Subject: [PATCH] [enh] oscar_template: improve result visualisation * highlight parts of result * add link to archiv.to * fix little bugs * add little icons * change style of "show map" button --- searx/static/oscar/css/leaflet.min.css | Bin 8019 -> 8027 bytes searx/static/oscar/css/oscar.min.css | Bin 757 -> 1047 bytes searx/static/oscar/less/oscar/cursor.less | 4 +++ searx/static/oscar/less/oscar/results.less | 29 ++++++++++++++++++ searx/templates/oscar/base.html | 2 +- .../oscar/result_templates/default.html | 7 +++-- .../oscar/result_templates/images.html | 2 +- .../templates/oscar/result_templates/map.html | 16 ++++++---- .../oscar/result_templates/torrent.html | 5 +-- .../oscar/result_templates/videos.html | 9 ++++-- 10 files changed, 59 insertions(+), 15 deletions(-) diff --git a/searx/static/oscar/css/leaflet.min.css b/searx/static/oscar/css/leaflet.min.css index 417e0e8e7bfa08894dae9fde7af6c78a6258fe17..bca0c58b9a6b4aeb77b2366cacb5e2893e6f8889 100644 GIT binary patch delta 38 kcmca?ciV2mZ2>MlJ^jqwbp71Kg2@jBGLg8O0|c4*03W>#RsaA1 delta 30 gcmca@ciC>kZ2`8-+{Ek}1GNH`P5rWKo0M5S)+yDRo diff --git a/searx/static/oscar/css/oscar.min.css b/searx/static/oscar/css/oscar.min.css index 5d2c24e63e61c480e0f86d5ca0a84fcd11b5d728..1afd3e866182ffc376896eb5de54313965bd009a 100644 GIT binary patch delta 287 zcmaKmJqp4=5JuTTkaXT4*0PHzHf!Z6EM-hK*@f&6n@J3W;2|u$hM<-AvUepxFooTG z!~5RMYjU05X5@U30#e~y4L(DNlbRTKvQ!Ivp{M*YK7 ggS$V-jx1PG`O {% if autocomplete %}{% endif %} - --> + diff --git a/searx/templates/oscar/result_templates/default.html b/searx/templates/oscar/result_templates/default.html index 018a29e0e..3fe9b913c 100644 --- a/searx/templates/oscar/result_templates/default.html +++ b/searx/templates/oscar/result_templates/default.html @@ -1,8 +1,11 @@ -

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

+{% from 'oscar/macros.html' import icon %} + +

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

{% if result.publishedDate %}{% endif %} +{{ icon('link') }} {{ _('cached') }} -{% if result.content %}

{{ result.content|safe }}

{% endif %} +{% if result.content %}

{{ result.content|safe }}

{% endif %}
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html index 578df4595..c1b9e9b01 100644 --- a/searx/templates/oscar/result_templates/images.html +++ b/searx/templates/oscar/result_templates/images.html @@ -11,7 +11,7 @@