mirror of
https://github.com/searxng/searxng
synced 2024-11-16 21:25:37 +00:00
[fix] add link to wikidata entities in infobox - fixes #1097
This commit is contained in:
parent
d5e146251f
commit
785f0938fd
@ -16,8 +16,12 @@
|
|||||||
{%- if attribute.image -%}
|
{%- if attribute.image -%}
|
||||||
<td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
<td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
{% 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>
|
<td><bdi>{{ attribute.value }}</bdi></td>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
{%- endif -%}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user