searxng-beetroot/beetroot_template/result_templates/map.html
2023-04-04 21:23:00 +02:00

2.7 KiB

{% from 'beetroot/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context %} {% from 'beetroot/icons.html' import icon_small %} {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} {%- if result.content %}

{{ result.content|safe }}

{% endif -%} {%- if result.address -%} {%- endif %} {%- for info in result.data -%} {%- endfor -%} {%- for link in result.links -%} {%- endfor -%}
{{ result.address_label or _('address') }} {%- if result.address.name -%} {{ result.address.name }} {%- endif -%} {% if result.address.road -%} {%- if result.address.house_number -%}{{- result.address.house_number -}}, {% endif %} {{- result.address.road -}}
{%- endif %} {%- if result.address.locality -%} {{- result.address.locality -}} {%- if result.address.postcode -%}, {{- result.address.postcode -}}{% endif %}
{%- endif -%} {%- if result.address.country -%} {{- result.address.country -}} {%- endif -%}
{{ info.label }}{{ info.value|safe }}
{{ link.label }}{{ link.url_label|safe }}
{%- if (result.latitude and result.longitude) or result.boundingbox -%} {{ icon_small( 'globe-outline') }} {{ _('show map') }} {%- endif -%} {{- result_sub_footer(result, proxify) -}} {% if (result.latitude and result.longitude) or result.boundingbox -%}
{%- endif %} {{- result_footer(result) }}