2014-09-28 14:53:30 +00:00
|
|
|
<div class="infobox">
|
2015-01-15 00:48:46 +00:00
|
|
|
<h2>{{ infobox.infobox }}</h2>
|
2015-01-17 21:36:48 +00:00
|
|
|
{% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
|
2015-01-15 00:48:46 +00:00
|
|
|
<p>{{ infobox.entity }}</p>
|
|
|
|
<p>{{ infobox.content | safe }}</p>
|
|
|
|
{% if infobox.attributes %}
|
|
|
|
<div class="attributes">
|
|
|
|
<table>
|
|
|
|
{% for attribute in infobox.attributes %}
|
2016-02-28 01:19:04 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ attribute.label }}</td>
|
|
|
|
{% if attribute.image %}
|
|
|
|
<td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
|
|
|
{% else %}
|
|
|
|
<td>{{ attribute.value }}</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 14:53:30 +00:00
|
|
|
|
2015-01-15 00:48:46 +00:00
|
|
|
{% if infobox.urls %}
|
|
|
|
<div class="urls">
|
|
|
|
<ul>
|
|
|
|
{% for url in infobox.urls %}
|
2015-04-26 13:32:26 +00:00
|
|
|
<li class="url"><a href="{{ url.url }}" rel="noreferrer">{{ url.title }}</a></li>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 14:53:30 +00:00
|
|
|
|
2015-01-15 00:48:46 +00:00
|
|
|
{% if infobox.relatedTopics %}
|
|
|
|
<div class="relatedTopics">
|
|
|
|
{% for topic in infobox.relatedTopics %}
|
|
|
|
<div>
|
|
|
|
<h3>{{ topic.name }}</h3>
|
|
|
|
{% 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 14:53:30 +00:00
|
|
|
|
2015-01-15 00:48:46 +00:00
|
|
|
<br />
|
2014-09-28 14:53:30 +00:00
|
|
|
|
|
|
|
</div>
|