diff options
author | Bnyro <bnyro@tutanota.com> | 2023-08-08 18:12:07 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-08-18 19:07:14 +0200 |
commit | 13d801b75d012a7a7a76440e1d2a51ed2ae03171 (patch) | |
tree | 4c9235dc528d360b68e21916a789b32fe560a371 /searx/templates | |
parent | 9100a48541f469df2973d3d42e8ed8f6bba4fac1 (diff) | |
download | searxng-13d801b75d012a7a7a76440e1d2a51ed2ae03171.tar.gz searxng-13d801b75d012a7a7a76440e1d2a51ed2ae03171.zip |
[feat] results: show source of suggested answer
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/results.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index c472d585c..42ad3fa3d 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -23,11 +23,10 @@ <div id="answers" role="complementary" aria-labelledby="answers-title"><h4 class="title" id="answers-title">{{ _('Answers') }} : </h4> {%- for answer in answers.values() -%} <div class="answer"> - {% if answer.url %} - <a href="{{ answer.url }}">{{ answer.answer }}</a> - {% else %} - <span>{{ answer.answer }}</span> - {% endif %} + <span>{{ answer.answer }}</span> + {% if answer.url -%} + <a href="{{ answer.url }}" class="answer-url">{{ urlparse(answer.url).hostname }}</a> + {% endif -%} </div> {%- endfor -%} </div> |