1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-14 16:50:11 +01:00
searxng/searx/templates/oscar/result_templates/code.html

19 lines
650 B
HTML
Raw Normal View History

{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
2014-12-20 23:33:03 +01:00
{{ result_header(result, favicons) }}
{{ result_sub_header(result) }}
2014-12-20 23:33:03 +01:00
{% 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 }}" rel="noreferrer">{{ result.repository }}</a></p>{% endif %}
2014-12-20 23:33:03 +01:00
<div dir="ltr">
2014-12-20 23:33:03 +01:00
{{ result.codelines|code_highlighter(result.code_language)|safe }}
</div>
2014-12-20 23:33:03 +01:00
{% if rtl %}
{{ result_footer_rtl(result) }}
{% else %}
{{ result_footer(result) }}
{% endif %}