summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/code.html
blob: 0ec0983b3d69491a86d26e2daa35ac6f7f7f33f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% 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|safe }}">{{ result.repository }}</a></p>{% endif %}

{{ result.codelines|code_highlighter(result.code_language)|safe }}

{% if rtl %}
{{ result_footer_rtl(result) }}
{% else %}
{{ result_footer(result) }}
{% endif %}