diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-06-09 17:01:59 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2020-06-09 17:18:44 +0200 |
| commit | 2c6531b2330a5c8ca986379dbad8812a6c6d3e49 (patch) | |
| tree | 479755fab6b8eda840f55e9b0bb6aabc1256176d /searx/templates/legacy | |
| parent | 785f0938fdc6c0b587d5f416f005ab5046260ba6 (diff) | |
[enh] add routing directions to osm search - closes #254
Diffstat (limited to 'searx/templates/legacy')
| -rw-r--r-- | searx/templates/legacy/results.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/searx/templates/legacy/results.html b/searx/templates/legacy/results.html index 2e28bc91f..fd95657a4 100644 --- a/searx/templates/legacy/results.html +++ b/searx/templates/legacy/results.html @@ -33,8 +33,12 @@ {% if answers %} <div id="answers"><span>{{ _('Answers') }}</span> - {% for answer in answers %} - <span>{{ answer }}</span> + {% for answer in answers.values() %} + {% if answer.url %} + <a href="{{ answer.url }}">{{ answer.answer }}</a> + {% else %} + <span>{{ answer.answer }}</span> + {% endif %} {% endfor %} </div> {% endif %} |