1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00
searx_ynh/sources/searx/templates/courgette/result_templates/code.html

12 lines
942 B
HTML
Raw Normal View History

2015-02-09 13:30:16 +01:00
<div class="result {{ result.class }}">
2015-09-08 23:05:37 +02:00
<h3 class="result_title">{% if result['favicon'] %}<img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" alt="{{result['favicon']}}" />{% endif %}<a href="{{ result.url }}" rel="noreferrer">{{ result.title|safe }}</a></h3>
2015-02-09 13:30:16 +01:00
{% if result.publishedDate %}<span class="published_date">{{ result.publishedDate }}</span>{% endif %}
<p class="content">{% if result.img_src %}<img src="{{ image_proxify(result.img_src) }}" class="image" />{% endif %}{% if result.content %}{{ result.content|safe }}<br class="last"/>{% endif %}</p>
2015-09-08 23:05:37 +02:00
{% if result.repository %}<p class="content"><a href="{{ result.repository|safe }}" rel="noreferrer">{{ 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
<p class="url">{{ result.pretty_url }}&lrm;</p>
2015-02-09 13:30:16 +01:00
</div>