From 2c6531b2330a5c8ca986379dbad8812a6c6d3e49 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 9 Jun 2020 17:01:59 +0200 Subject: [enh] add routing directions to osm search - closes #254 --- searx/templates/oscar/results.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'searx/templates/oscar') diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index fc4efadfa..7a444d19f 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -94,9 +94,13 @@ {%- endif %} {% if answers -%} - {%- for answer in answers %} + {%- for answer in answers.values() %}
- {{ answer }} + {% if answer.url %} + {{ answer.answer }} + {% else %} + {{ answer.answer }} + {% endif %}
{%- endfor %} {%- endif %} -- cgit v1.2.3 From 6c062862513dcaeebeb497ba1c61ea83e3a9e50b Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 9 Jun 2020 20:31:51 +0200 Subject: [enh] add length and author details to youtube videos closes #775 --- searx/templates/oscar/result_templates/videos.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/templates/oscar') diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html index 3c1913d9d..51ed5a025 100644 --- a/searx/templates/oscar/result_templates/videos.html +++ b/searx/templates/oscar/result_templates/videos.html @@ -16,6 +16,8 @@
{{ result.title|striptags }} {{ result.engine }} + {% if result.author %}

{{ _('Author') }}: {{ result.author }}

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

{{ _('Length') }}: {{ result.length }}

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

{{ result.content|safe }}

{% endif %}
-- cgit v1.2.3 From 29960aa1d912f365846731c9aca166b5b7879d02 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 9 Jun 2020 23:49:13 +0200 Subject: [enh] add official site link to the top of the infobox - closes #1644 --- searx/templates/oscar/infobox.html | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/templates/oscar') diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html index de595b922..04f2d5f22 100644 --- a/searx/templates/oscar/infobox.html +++ b/searx/templates/oscar/infobox.html @@ -2,6 +2,7 @@
{{- "" -}}

{{ infobox.infobox }}

{{- "" -}} + {% for u in infobox.urls %}{% if u.official %} {{ u.domain }}{% endif %}{% endfor %}
{% if infobox.img_src %}{{ infobox.infobox }}{% endif %} -- cgit v1.2.3