logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

infobox.html (1442B)


  1. {% from 'oscar/macros.html' import result_link with context %}
  2. <div class="panel panel-default infobox">
  3. <div class="panel-heading">
  4. <h4 class="panel-title infobox_part"><bdi>{{ infobox.infobox }}</bdi></h4>
  5. </div>
  6. <div class="panel-body">
  7. {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" alt="{{ infobox.infobox }}" />{% endif %}
  8. {% if infobox.content %}<bdi><p class="infobox_part">{{ infobox.content }}</bdi></p>{% endif %}
  9. {% if infobox.attributes %}
  10. <table class="table table-striped infobox_part">
  11. {% for attribute in infobox.attributes %}
  12. <tr>
  13. <td><bdi>{{ attribute.label }}</bdi></td>
  14. {% if attribute.image %}
  15. <td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
  16. {% else %}
  17. <td><bdi>{{ attribute.value }}</bdi></td>
  18. {% endif %}
  19. </tr>
  20. {% endfor %}
  21. </table>
  22. {% endif %}
  23. {% if infobox.urls %}
  24. <div class="infobox_part">
  25. <bdi>
  26. {% for url in infobox.urls %}
  27. <p class="btn btn-default btn-xs">{{ result_link(url.url, url.title) }}</a></p>
  28. {% endfor %}
  29. </bdi>
  30. </div>
  31. {% endif %}
  32. </div>
  33. </div>