diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2020-06-09 10:27:10 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-06-09 10:27:10 +0200 |
| commit | 3d6a7302a227e124ece3b4e48165dec23e4aaf53 (patch) | |
| tree | 5503ec11f9d680c9625536048f4f73f612a977f0 /searx/templates/oscar/infobox.html | |
| parent | d9c1d5192def5c67dff34e42cfe43a55df2e792f (diff) | |
| parent | 785f0938fdc6c0b587d5f416f005ab5046260ba6 (diff) | |
Merge branch 'master' of https://github.com/asciimoo/searx into gigablast
Diffstat (limited to 'searx/templates/oscar/infobox.html')
| -rw-r--r-- | searx/templates/oscar/infobox.html | 6 |
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 -%} |