From 0a71525ab6d4fe4cbc4b33b4653bdb39ae4d55e9 Mon Sep 17 00:00:00 2001 From: Dalf Date: Sun, 28 Sep 2014 16:53:30 +0200 Subject: [enh] add infoboxes and answers (clean up) --- searx/templates/default/infobox.html | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 searx/templates/default/infobox.html (limited to 'searx/templates/default') diff --git a/searx/templates/default/infobox.html b/searx/templates/default/infobox.html new file mode 100644 index 000000000..f963e898c --- /dev/null +++ b/searx/templates/default/infobox.html @@ -0,0 +1,44 @@ +
+

{{ infobox.infobox }}

+ {% if infobox.img_src %}{% endif %} +

{{ infobox.entity }}

+

{{ infobox.content }}

+ {% if infobox.attributes %} +
+ + {% for attribute in infobox.attributes %} + + {% endfor %} +
{{ attribute.label }}{{ attribute.value }}
+
+ {% endif %} + + {% if infobox.urls %} +
+ +
+ {% endif %} + + {% if infobox.relatedTopics %} +
+ {% for topic in infobox.relatedTopics %} +
+

{{ topic.name }}

+ {% for suggestion in topic.suggestions %} +
+ + +
+ {% endfor %} +
+ {% endfor %} +
+ {% endif %} + +
+ +
-- cgit v1.2.3