mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
oscar template: implement first version of results page
* implement results page * improve search form template * implement all result_templates * fix youtube engine
This commit is contained in:
parent
9158571059
commit
f3b565e17e
10 changed files with 127 additions and 15 deletions
|
@ -69,12 +69,8 @@ def response(resp):
|
|||
|
||||
if result['media$group']['media$thumbnail']:
|
||||
thumbnail = result['media$group']['media$thumbnail'][0]['url']
|
||||
content += '<a href="{0}" title="{0}" ><img src="{1}" /></a>'.format(url, thumbnail) # noqa
|
||||
|
||||
if content:
|
||||
content += '<br />' + result['content']['$t']
|
||||
else:
|
||||
content = result['content']['$t']
|
||||
content = result['content']['$t']
|
||||
|
||||
# append result
|
||||
results.append({'url': url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue