mirror of
https://github.com/searxng/searxng.git
synced 2024-11-14 00:30:15 +01:00
8d71420b45
This makes it easier to separately handle search and index requests from a web server or from a reverse proxy. If a request to index contains a query, a permanent redirect HTTP response is returned. This should give some level of backwards compatibility for users that have set a searx instance in their browser's search bar.
52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
<div class="infobox">
|
|
<h2><bdi>{{ infobox.infobox }}</bdi></h2>
|
|
{% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
|
|
<p><bdi>{{ infobox.entity }}</bdi></p>
|
|
<p><bdi>{{ infobox.content | safe }}</bdi></p>
|
|
{% if infobox.attributes %}
|
|
<div class="attributes">
|
|
<table>
|
|
{% for attribute in infobox.attributes %}
|
|
<tr>
|
|
<td><bdi>{{ attribute.label }}</bdi></td>
|
|
{% if attribute.image %}
|
|
<td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
|
{% else %}
|
|
<td><bdi>{{ attribute.value }}</bdi></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if infobox.urls %}
|
|
<div class="urls">
|
|
<ul>
|
|
{% for url in infobox.urls %}
|
|
<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>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if infobox.relatedTopics %}
|
|
<div class="relatedTopics">
|
|
{% for topic in infobox.relatedTopics %}
|
|
<div>
|
|
<h3><bdi>{{ topic.name }}</bdi></h3>
|
|
{% for suggestion in topic.suggestions %}
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
|
|
<input type="hidden" name="q" value="{{ suggestion }}">
|
|
<input type="submit" value="{{ suggestion }}" />
|
|
</form>
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<br />
|
|
|
|
</div>
|