2015-02-17 12:45:54 +01:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
2015-02-09 13:30:16 +01:00
|
|
|
|
|
|
|
{{ 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 %}
|
|
|
|
|
2015-02-17 12:45:54 +01:00
|
|
|
<div dir="ltr">
|
2015-02-09 13:30:16 +01:00
|
|
|
{{ result.codelines|code_highlighter(result.code_language)|safe }}
|
2015-02-17 12:45:54 +01:00
|
|
|
</div>
|
2015-02-09 13:30:16 +01:00
|
|
|
|
2015-02-17 12:45:54 +01:00
|
|
|
{% if rtl %}
|
|
|
|
{{ result_footer_rtl(result) }}
|
|
|
|
{% else %}
|
2015-02-09 13:30:16 +01:00
|
|
|
{{ result_footer(result) }}
|
2015-02-17 12:45:54 +01:00
|
|
|
{% endif %}
|