summaryrefslogtreecommitdiff
path: root/searx/templates/legacy/infobox.html
diff options
context:
space:
mode:
authorPydo <pydo@tutanota.com>2016-10-01 10:46:18 -0400
committerPydo <pydo@tutanota.com>2016-10-01 10:46:18 -0400
commit55a5b686ed6dc0b9a6bfc45e0eaf1f70e24f2aea (patch)
tree96e953057dd3fc29681039f7ac5b282dac189ee8 /searx/templates/legacy/infobox.html
parent6f87bf2a1c76f1b94ad2119df7fb938c2307e370 (diff)
parent295fc9ce96d8cca9c6c4776a00e5fb0942eb6f4d (diff)
Merge branch 'master' of https://github.com/asciimoo/searx into feature/seedpeer-engine-integration
Resolved conflict searx/settings.yml
Diffstat (limited to 'searx/templates/legacy/infobox.html')
-rw-r--r--searx/templates/legacy/infobox.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/searx/templates/legacy/infobox.html b/searx/templates/legacy/infobox.html
new file mode 100644
index 000000000..4dd25fabd
--- /dev/null
+++ b/searx/templates/legacy/infobox.html
@@ -0,0 +1,51 @@
+<div class="infobox">
+<h2><bdi>{{ infobox.infobox }}</bdi></h2>
+ {% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
+ <p><bdi>{{ infobox.entity }}</bdi></p>
+ <p><bdi>{{ infobox.content | safe }}</bdi></p>
+ {% if infobox.attributes %}
+ <div class="attributes">
+ <table>
+ {% for attribute in infobox.attributes %}
+ <tr>
+ <td><bdi>{{ attribute.label }}</bdi></td>
+ {% if attribute.image %}
+ <td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
+ {% else %}
+ <td><bdi>{{ attribute.value }}</bdi></td>
+ {% endif %}
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ {% endif %}
+
+ {% if infobox.urls %}
+ <div class="urls">
+ <ul>
+ {% for url in infobox.urls %}
+ <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>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+
+ {% if infobox.relatedTopics %}
+ <div class="relatedTopics">
+ {% for topic in infobox.relatedTopics %}
+ <div>
+ <h3><bdi>{{ topic.name }}</bdi></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 %}
+
+ <br />
+
+</div>