2014-09-28 16:53:30 +02:00
|
|
|
<div class="infobox">
|
2016-06-06 08:08:36 +02:00
|
|
|
<h2><bdi>{{ infobox.infobox }}</bdi></h2>
|
2015-01-17 22:36:48 +01:00
|
|
|
{% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
|
2016-06-06 08:08:36 +02:00
|
|
|
<p><bdi>{{ infobox.entity }}</bdi></p>
|
|
|
|
<p><bdi>{{ infobox.content | safe }}</bdi></p>
|
2015-01-15 01:48:46 +01:00
|
|
|
{% if infobox.attributes %}
|
|
|
|
<div class="attributes">
|
|
|
|
<table>
|
|
|
|
{% for attribute in infobox.attributes %}
|
2016-02-28 02:19:04 +01:00
|
|
|
<tr>
|
2016-06-06 08:08:36 +02:00
|
|
|
<td><bdi>{{ attribute.label }}</bdi></td>
|
2016-02-28 02:19:04 +01:00
|
|
|
{% if attribute.image %}
|
|
|
|
<td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
|
|
|
{% else %}
|
2016-06-06 08:08:36 +02:00
|
|
|
<td><bdi>{{ attribute.value }}</bdi></td>
|
2016-02-28 02:19:04 +01:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
2015-01-15 01:48:46 +01:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 16:53:30 +02:00
|
|
|
|
2015-01-15 01:48:46 +01:00
|
|
|
{% if infobox.urls %}
|
|
|
|
<div class="urls">
|
|
|
|
<ul>
|
|
|
|
{% for url in infobox.urls %}
|
2016-09-04 15:56:46 +02:00
|
|
|
<li class="url"><bdi><a href="{{ url.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ url.title }}</a></bdi></li>
|
2015-01-15 01:48:46 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 16:53:30 +02:00
|
|
|
|
2015-01-15 01:48:46 +01:00
|
|
|
{% if infobox.relatedTopics %}
|
|
|
|
<div class="relatedTopics">
|
|
|
|
{% for topic in infobox.relatedTopics %}
|
|
|
|
<div>
|
2016-06-06 08:08:36 +02:00
|
|
|
<h3><bdi>{{ topic.name }}</bdi></h3>
|
2015-01-15 01:48:46 +01:00
|
|
|
{% for suggestion in topic.suggestions %}
|
|
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
|
|
|
<input type="hidden" name="q" value="{{ suggestion }}">
|
|
|
|
<input type="submit" value="{{ suggestion }}" />
|
|
|
|
</form>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 16:53:30 +02:00
|
|
|
|
2015-01-15 01:48:46 +01:00
|
|
|
<br />
|
2014-09-28 16:53:30 +02:00
|
|
|
|
|
|
|
</div>
|