Ponysearch/searx/templates/oscar/results.html
Thomas Pointhuber f3b565e17e oscar template: implement first version of results page
* implement results page
* improve search form template
* implement all result_templates
* fix youtube engine
2014-10-05 14:40:46 +02:00

22 lines
921 B
HTML

{% 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 %}