diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-11-02 13:00:28 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-11-02 13:00:28 +0100 |
commit | 740594a4b73952ad3f5fa52dd1bb939c73dcc7c2 (patch) | |
tree | 07966947a2c61b7de99b9c52cd1bd4eebcc85759 /searx/templates/default | |
parent | b4829891f93515c7d19af2472a855eccd7807c4a (diff) | |
download | searxng-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/default')
-rw-r--r-- | searx/templates/default/result_templates/map.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/searx/templates/default/result_templates/map.html b/searx/templates/default/result_templates/map.html new file mode 100644 index 000000000..78221aa01 --- /dev/null +++ b/searx/templates/default/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> + <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> + </div> +</div> |