diff options
author | Johannes 'josch' Schauer <josch@debian.org> | 2020-02-01 01:09:45 +0100 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@debian.org> | 2020-02-01 01:09:45 +0100 |
commit | 3e49246c2e44159486ea66fed3757cdb4e4d0c50 (patch) | |
tree | 73fecfac5dd7475f346d4bff59d78aec04a966a8 /searx/templates/oscar/infobox.html |
Import Upstream version 0.15.0+dfsg1
Diffstat (limited to 'searx/templates/oscar/infobox.html')
-rw-r--r-- | searx/templates/oscar/infobox.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html new file mode 100644 index 0000000..c98fb0e --- /dev/null +++ b/searx/templates/oscar/infobox.html @@ -0,0 +1,35 @@ +{% from 'oscar/macros.html' import result_link with context %} +<div class="panel panel-default infobox"> + <div class="panel-heading"> + <h4 class="panel-title infobox_part"><bdi>{{ infobox.infobox }}</bdi></h4> + </div> + <div class="panel-body"> + {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" alt="{{ infobox.infobox }}" />{% endif %} + {% if infobox.content %}<bdi><p class="infobox_part">{{ infobox.content }}</bdi></p>{% endif %} + + {% if infobox.attributes %} + <table class="table table-striped infobox_part"> + {% for attribute in infobox.attributes %} + <tr> + <td><bdi>{{ attribute.label }}</bdi></td> + {% if attribute.image %} + <td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td> + {% else %} + <td><bdi>{{ attribute.value }}</bdi></td> + {% endif %} + </tr> + {% endfor %} + </table> + {% endif %} + + {% if infobox.urls %} + <div class="infobox_part"> + <bdi> + {% for url in infobox.urls %} + <p class="btn btn-default btn-xs">{{ result_link(url.url, url.title) }}</a></p> + {% endfor %} + </bdi> + </div> + {% endif %} + </div> +</div> |