mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01: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
22
searx/templates/oscar/results.html
Normal file
22
searx/templates/oscar/results.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends "oscar/base.html" %}
|
||||
{% block title %}{{ q }} - {% endblock %}
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-sm-8" id="main_results">
|
||||
<h1 class="sr-only">{{ _('Search results') }}</h1>
|
||||
{% include 'oscar/search.html' %}
|
||||
|
||||
{% for result in results %}
|
||||
<div class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %}">
|
||||
{% set index = loop.index %}
|
||||
{% if result.template %}{% include 'oscar/result_templates/'+result['template'] %}{% else %}{% include 'oscar/result_templates/default.html' %}{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4" id="sidebar_results">
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue