From a0a1284998946bdc446283552674263240b4fd0f Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 6 Jun 2016 01:08:36 -0500 Subject: wikidata refactor and more attributes (see issue #560) --- searx/templates/default/infobox.html | 14 +++++++------- searx/templates/oscar/infobox.html | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'searx/templates') diff --git a/searx/templates/default/infobox.html b/searx/templates/default/infobox.html index 178a27e6d..ce26ac578 100644 --- a/searx/templates/default/infobox.html +++ b/searx/templates/default/infobox.html @@ -1,18 +1,18 @@
-

{{ infobox.infobox }}

+

{{ infobox.infobox }}

{% if infobox.img_src %}{{ infobox.infobox|striptags }}{% endif %} -

{{ infobox.entity }}

-

{{ infobox.content | safe }}

+

{{ infobox.entity }}

+

{{ infobox.content | safe }}

{% if infobox.attributes %}
{% for attribute in infobox.attributes %} - + {% if attribute.image %} {% else %} - + {% endif %} {% endfor %} @@ -24,7 +24,7 @@
@@ -34,7 +34,7 @@
{% for topic in infobox.relatedTopics %}
-

{{ topic.name }}

+

{{ topic.name }}

{% for suggestion in topic.suggestions %}
diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html index c72cfb638..70d12f2fb 100644 --- a/searx/templates/oscar/infobox.html +++ b/searx/templates/oscar/infobox.html @@ -1,21 +1,20 @@
-

{{ infobox.infobox }}

+

{{ infobox.infobox }}

- {% if infobox.img_src %}{{ infobox.infobox }}{% endif %} - {% if infobox.content %}

{{ infobox.content }}

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

{{ infobox.content }}

{% endif %} {% if infobox.attributes %}
{{ attribute.label }}{{ attribute.label }}{{ attribute.image.alt }}{{ attribute.value }}{{ attribute.value }}
{% for attribute in infobox.attributes %} - + {% if attribute.image %} {% else %} - + {% endif %} {% endfor %} @@ -24,11 +23,12 @@ {% if infobox.urls %}
+ {% for url in infobox.urls %}

{{ url.title }}

{% endfor %} +
{% endif %} - -- cgit v1.2.3
{{ attribute.label }}{{ attribute.label }}{{ attribute.image.alt }}{{ attribute.value }}{{ attribute.value }}