2015-02-10 14:23:56 +00:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
2014-12-20 22:33:03 +00:00
|
|
|
|
2015-01-09 20:25:13 +00:00
|
|
|
{{ result_header(result, favicons) }}
|
2014-12-22 15:07:02 +00:00
|
|
|
{{ result_sub_header(result) }}
|
2014-12-20 22:33:03 +00:00
|
|
|
|
|
|
|
{% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %}
|
|
|
|
|
2015-04-26 13:32:26 +00:00
|
|
|
{% if result.repository %}<p class="result-content">{{ icon('file') }} <a href="{{ result.repository|safe }}" rel="noreferrer">{{ result.repository }}</a></p>{% endif %}
|
2014-12-20 22:33:03 +00:00
|
|
|
|
2015-02-13 00:03:18 +00:00
|
|
|
<div dir="ltr">
|
2014-12-20 22:33:03 +00:00
|
|
|
{{ result.codelines|code_highlighter(result.code_language)|safe }}
|
2015-02-13 00:03:18 +00:00
|
|
|
</div>
|
2014-12-20 22:33:03 +00:00
|
|
|
|
2015-02-10 14:23:56 +00:00
|
|
|
{% if rtl %}
|
|
|
|
{{ result_footer_rtl(result) }}
|
|
|
|
{% else %}
|
2014-12-22 15:07:02 +00:00
|
|
|
{{ result_footer(result) }}
|
2015-02-10 14:23:56 +00:00
|
|
|
{% endif %}
|