mirror of
https://github.com/searxng/searxng.git
synced 2024-11-05 12:50:11 +01:00
19 lines
734 B
HTML
19 lines
734 B
HTML
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
|
|
|
{{ result_header(result, favicons) }}
|
|
{{ result_sub_header(result) }}
|
|
|
|
{% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %}
|
|
|
|
{% if result.repository %}<p class="result-content">{{ icon('file') }} <a href="{{ result.repository }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ result.repository }}</a></p>{% endif %}
|
|
|
|
<div dir="ltr">
|
|
{{ result.codelines|code_highlighter(result.code_language)|safe }}
|
|
</div>
|
|
|
|
{% if rtl %}
|
|
{{ result_footer_rtl(result) }}
|
|
{% else %}
|
|
{{ result_footer(result) }}
|
|
{% endif %}
|