diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-01-15 18:57:08 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-15 18:57:08 +0100 |
commit | 75bd4556f8cca8c39799fdee02739408a4d84cfa (patch) | |
tree | 8e2545b9953f6d7f1e94d5aad85cab75295c590d /searx/templates/courgette/result_templates/code.html | |
parent | c5599e3c7c790ac2674b68f99919c0ec284327a3 (diff) | |
parent | fe5ff5137711e6f8799e3e635543e75ad8fbe331 (diff) | |
download | searxng-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.html | 9 |
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>
|