summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/infobox.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-09 08:29:48 +0000
committerGitHub <noreply@github.com>2020-06-09 08:29:48 +0000
commit2b1f73ad49b6f228830fd07c5cde8be0dcb29cd5 (patch)
tree8ade565942e41583473189cd1a674156f33be045 /searx/templates/oscar/infobox.html
parentb85d845636ec36bdd98d4d5cea21dd0d82fcdec9 (diff)
parent785f0938fdc6c0b587d5f416f005ab5046260ba6 (diff)
Merge branch 'master' into about-opensearch
Diffstat (limited to 'searx/templates/oscar/infobox.html')
-rw-r--r--searx/templates/oscar/infobox.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html
index 9802f11e2..de595b922 100644
--- a/searx/templates/oscar/infobox.html
+++ b/searx/templates/oscar/infobox.html
@@ -16,7 +16,11 @@
{%- if attribute.image -%}
<td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
{%- else -%}
- <td><bdi>{{ attribute.value }}</bdi></td>
+ {% if attribute.label == 'Instance of' %}
+ <td><bdi><a href="https://wikidata.org/wiki/{{ attribute.value.id }}">{{ attribute.value.id }}</a></bdi></td>
+ {% else %}
+ <td><bdi>{{ attribute.value }}</bdi></td>
+ {%- endif -%}
{%- endif -%}
</tr>
{% endfor -%}