2022-06-20 17:00:10 +00:00
|
|
|
{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context %}
|
2017-02-12 14:06:01 +00:00
|
|
|
|
|
|
|
{{ result_header(result, favicons, image_proxify) -}}
|
|
|
|
{{- result_sub_header(result) -}}
|
2023-09-06 17:12:27 +00:00
|
|
|
|
|
|
|
{%- if result.content -%}
|
|
|
|
<p class="content">
|
|
|
|
{{- result.content|safe -}}
|
|
|
|
</p>
|
|
|
|
{%- endif -%}
|
2017-02-12 14:06:01 +00:00
|
|
|
{%- if result.repository -%}
|
2023-09-06 17:12:27 +00:00
|
|
|
<p class="content">{{- '' -}}
|
|
|
|
{{ _('repo') }}: {{- ' ' -}}
|
|
|
|
<a href="{{ result.repository|safe }}"{{- ' ' -}}
|
|
|
|
{% if results_on_new_tab %}
|
|
|
|
target="_blank" {{- ' ' -}}
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
{%- else -%}
|
|
|
|
rel="noreferrer"
|
|
|
|
{%- endif -%}
|
|
|
|
>
|
|
|
|
{{- result.repository -}}
|
|
|
|
</a>{{- '' -}}
|
|
|
|
</p>
|
2017-02-12 14:06:01 +00:00
|
|
|
{%- endif -%}
|
2023-09-06 17:12:27 +00:00
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
<div dir="ltr" class="codelines">
|
|
|
|
{{- result.codelines|code_highlighter(result.code_language)|safe -}}
|
2023-09-06 17:12:27 +00:00
|
|
|
</div>
|
|
|
|
|
2017-02-12 14:06:01 +00:00
|
|
|
{{- result_sub_footer(result, proxify) -}}
|
2023-09-06 17:12:27 +00:00
|
|
|
{{- result_footer(result) -}}
|