summaryrefslogtreecommitdiff
path: root/searx/templates/courgette/result_templates
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-11-02 13:00:28 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-11-02 13:00:28 +0100
commit740594a4b73952ad3f5fa52dd1bb939c73dcc7c2 (patch)
tree07966947a2c61b7de99b9c52cd1bd4eebcc85759 /searx/templates/courgette/result_templates
parentb4829891f93515c7d19af2472a855eccd7807c4a (diff)
downloadsearxng-740594a4b73952ad3f5fa52dd1bb939c73dcc7c2.tar.gz
searxng-740594a4b73952ad3f5fa52dd1bb939c73dcc7c2.zip
[enh] oscar_template: initial osm-map support for map results
* TODO: remove leaflet.min.css if not required
Diffstat (limited to 'searx/templates/courgette/result_templates')
-rw-r--r--searx/templates/courgette/result_templates/map.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/searx/templates/courgette/result_templates/map.html b/searx/templates/courgette/result_templates/map.html
new file mode 100644
index 000000000..734f9066c
--- /dev/null
+++ b/searx/templates/courgette/result_templates/map.html
@@ -0,0 +1,13 @@
+<div class="result {{ result.class }}">
+
+ {% if result['favicon'] %}
+ <img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" />
+ {% endif %}
+
+ <div>
+ <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
+ {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %}
+ <p class="content">{% if result.content %}{{ result.content|safe }}<br />{% endif %}</p>
+ <p class="url">{{ result.pretty_url }}</p>
+ </div>
+</div>