forked from Icycoide/searxng
[enh] add routing directions to osm search - closes #254
This commit is contained in:
parent
785f0938fd
commit
2c6531b233
6 changed files with 38 additions and 12 deletions
|
@ -15,8 +15,14 @@
|
|||
<div id="results" class="{{ only_template }}">
|
||||
{% if answers -%}
|
||||
<div id="answers"><h4 class="title">{{ _('Answers') }} : </h4>
|
||||
{%- for answer in answers -%}
|
||||
<div class="answer">{{- answer -}}</div>
|
||||
{%- for answer in answers.values() -%}
|
||||
<div class="answer">
|
||||
{% if answer.url %}
|
||||
<a href="{{ answer.url }}">{{ answer.answer }}</a>
|
||||
{% else %}
|
||||
<span>{{ answer.answer }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue