logo

searx

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

infobox.html (1834B)


  1. <div class="infobox">
  2. <h2><bdi>{{ infobox.infobox }}</bdi></h2>
  3. {% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
  4. <p><bdi>{{ infobox.entity }}</bdi></p>
  5. <p><bdi>{{ infobox.content | safe }}</bdi></p>
  6. {% if infobox.attributes %}
  7. <div class="attributes">
  8. <table>
  9. {% for attribute in infobox.attributes %}
  10. <tr>
  11. <td><bdi>{{ attribute.label }}</bdi></td>
  12. {% if attribute.image %}
  13. <td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
  14. {% else %}
  15. <td><bdi>{{ attribute.value }}</bdi></td>
  16. {% endif %}
  17. </tr>
  18. {% endfor %}
  19. </table>
  20. </div>
  21. {% endif %}
  22. {% if infobox.urls %}
  23. <div class="urls">
  24. <ul>
  25. {% for url in infobox.urls %}
  26. <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>
  27. {% endfor %}
  28. </ul>
  29. </div>
  30. {% endif %}
  31. {% if infobox.relatedTopics %}
  32. <div class="relatedTopics">
  33. {% for topic in infobox.relatedTopics %}
  34. <div>
  35. <h3><bdi>{{ topic.name }}</bdi></h3>
  36. {% for suggestion in topic.suggestions %}
  37. <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
  38. <input type="hidden" name="q" value="{{ suggestion }}">
  39. <input type="submit" value="{{ suggestion }}" />
  40. </form>
  41. {% endfor %}
  42. </div>
  43. {% endfor %}
  44. </div>
  45. {% endif %}
  46. <br />
  47. </div>