summaryrefslogtreecommitdiff
path: root/searx/templates/courgette/result_templates/code.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-18 10:39:13 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-18 10:39:13 +0100
commit285f991cd078db7df5622e3109984f1f3c651988 (patch)
tree0300ad8dee31d7c9cfcf9246d749290e50f2f218 /searx/templates/courgette/result_templates/code.html
parenta865e6672fa2a289937ff378e8893c19f71c5e0c (diff)
parent1d5151215266d74085406604f99d8dec1c7cbe72 (diff)
Merge pull request #182 from dalf/enh-proxy
[enh] image-proxy : handle ETag and date related headers, add hash to URL
Diffstat (limited to 'searx/templates/courgette/result_templates/code.html')
-rw-r--r--searx/templates/courgette/result_templates/code.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/courgette/result_templates/code.html b/searx/templates/courgette/result_templates/code.html
index 444366b85..6721bd0fe 100644
--- a/searx/templates/courgette/result_templates/code.html
+++ b/searx/templates/courgette/result_templates/code.html
@@ -1,9 +1,9 @@
<div class="result {{ result.class }}">
<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 }}">{{ result.title|safe }}</a></h3>
{% if result.publishedDate %}<span class="published_date">{{ result.publishedDate }}</span>{% endif %}
- <p class="content">{% if result.img_src %}<img src="{{ result.img_src }}" class="image" />{% endif %}{% if result.content %}{{ result.content|safe }}<br class="last"/>{% endif %}</p>
+ <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>
{% if result.repository %}<p class="content"><a href="{{ result.repository|safe }}">{{ result.repository }}</a></p>{% endif %}
{{ result.codelines|code_highlighter(result.code_language)|safe }}
<p class="url">{{ result.pretty_url }}</p>
-</div> \ No newline at end of file
+</div>