summaryrefslogtreecommitdiff
path: root/searx/templates/courgette/result_templates/code.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-15 18:57:08 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-15 18:57:08 +0100
commit75bd4556f8cca8c39799fdee02739408a4d84cfa (patch)
tree8e2545b9953f6d7f1e94d5aad85cab75295c590d /searx/templates/courgette/result_templates/code.html
parentc5599e3c7c790ac2674b68f99919c0ec284327a3 (diff)
parentfe5ff5137711e6f8799e3e635543e75ad8fbe331 (diff)
downloadsearxng-75bd4556f8cca8c39799fdee02739408a4d84cfa.tar.gz
searxng-75bd4556f8cca8c39799fdee02739408a4d84cfa.zip
Merge branch 'pointhi-code_results'
Diffstat (limited to 'searx/templates/courgette/result_templates/code.html')
-rw-r--r--searx/templates/courgette/result_templates/code.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/searx/templates/courgette/result_templates/code.html b/searx/templates/courgette/result_templates/code.html
new file mode 100644
index 000000000..616b7ea62
--- /dev/null
+++ b/searx/templates/courgette/result_templates/code.html
@@ -0,0 +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>
+ <p class="url">{{ result.pretty_url }} <a class="cache_link" href="https://web.archive.org/web/{{ result.url }}">cached</a></p>
+ {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% 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>
+ {% if result.repository %}<p class="result-content"><a href="{{ result.repository|safe }}">{{ result.repository }}</a></p>{% endif %}
+
+ {{ result.codelines|code_highlighter(result.code_language)|safe }}
+</div>