logo

searx

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

infobox.html (1602B)


  1. <aside 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. {% for attribute in infobox.attributes %}
  9. <dl>
  10. <dt><bdi>{{ attribute.label }} :</bdi></dt>
  11. {%- if attribute.image -%}
  12. <dd><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></dd>
  13. {%- else -%}
  14. <dd><bdi>{{ attribute.value }}</bdi></dd>
  15. {%- endif -%}
  16. </dl>
  17. {% endfor %}
  18. </div>
  19. {% endif %}
  20. {% if infobox.urls %}
  21. <div class="urls">
  22. <ul>
  23. {%- for url in infobox.urls -%}
  24. <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>
  25. {%- endfor -%}
  26. </ul>
  27. </div>
  28. {% endif %}
  29. {% if infobox.relatedTopics %}
  30. <div class="relatedTopics">
  31. {% for topic in infobox.relatedTopics %}
  32. <div>
  33. <h3><bdi>{{ topic.name }}</bdi></h3>
  34. {% for suggestion in topic.suggestions %}
  35. <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
  36. <input type="hidden" name="q" value="{{ suggestion }}">
  37. <input type="submit" value="{{ suggestion }}" />
  38. </form>
  39. {% endfor %}
  40. </div>
  41. {% endfor %}
  42. </div>
  43. {% endif %}
  44. </aside>