| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  | {% extends "oscar/base.html" %} | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  | {% macro search_form_attrs(pageno) -%} | 
					
						
							| 
									
										
										
										
											2017-01-04 00:49:52 +01:00
										 |  |  |     {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %} | 
					
						
							|  |  |  |     <input type="hidden" name="q" value="{{ q|e }}" /> | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  |     <input type="hidden" name="pageno" value="{{ pageno }}" /> | 
					
						
							| 
									
										
										
										
											2017-01-04 00:49:52 +01:00
										 |  |  |     <input type="hidden" name="time_range" value="{{ time_range }}" /> | 
					
						
							|  |  |  |     <input type="hidden" name="language" value="{{ current_language }}" /> | 
					
						
							|  |  |  | {%- endmacro %} | 
					
						
							|  |  |  | {%- macro search_url() %}{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-04 23:07:46 +01:00
										 |  |  | {% block title %}{{ q|e }} - {% endblock %} | 
					
						
							| 
									
										
										
										
											2017-01-04 00:49:52 +01:00
										 |  |  | {% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ search_url() }}&format=rss">{% endblock %} | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  | {% block content %} | 
					
						
							| 
									
										
										
										
											2017-01-26 21:12:41 +01:00
										 |  |  |     {% include 'oscar/search.html' %} | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col-sm-8" id="main_results"> | 
					
						
							|  |  |  |             <h1 class="sr-only">{{ _('Search results') }}</h1> | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-14 09:40:37 +01:00
										 |  |  |             {% if corrections %} | 
					
						
							|  |  |  |             <div class="result"> | 
					
						
							|  |  |  |                 <span class="result_header text-muted form-inline pull-left suggestion_item">{{ _('Try searching for:') }}</span> | 
					
						
							|  |  |  |                 {% for correction in corrections %} | 
					
						
							|  |  |  |                     <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-left suggestion_item"> | 
					
						
							| 
									
										
										
										
											2019-07-02 02:52:34 +02:00
										 |  |  |                         <input type="hidden" name="q" value="{{ query_prefix + correction }}"> | 
					
						
							| 
									
										
										
										
											2017-01-14 09:40:37 +01:00
										 |  |  |                         <button type="submit" class="btn btn-default btn-xs">{{ correction }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							|  |  |  |                 {% endfor %} | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-26 19:20:20 +01:00
										 |  |  |             {% if answers %} | 
					
						
							|  |  |  |             {% for answer in answers %} | 
					
						
							|  |  |  |             <div class="result well"> | 
					
						
							|  |  |  |                 <span>{{ answer }}</span> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             {% endfor %} | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  |             {% for result in results %} | 
					
						
							|  |  |  |             <div class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %}"> | 
					
						
							|  |  |  |                 {% set index = loop.index %} | 
					
						
							| 
									
										
										
										
											2015-01-01 18:59:53 +01:00
										 |  |  |                 {% if result.template %} | 
					
						
							|  |  |  |                     {% include get_result_template('oscar', result['template']) %} | 
					
						
							|  |  |  |                 {% else %} | 
					
						
							|  |  |  |                     {% include 'oscar/result_templates/default.html' %} | 
					
						
							|  |  |  |                 {% endif %} | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  |             </div> | 
					
						
							|  |  |  |             {% endfor %} | 
					
						
							| 
									
										
										
										
											2015-03-09 00:32:23 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |             {% if not results and not answers %} | 
					
						
							| 
									
										
										
										
											2014-10-01 19:46:29 +02:00
										 |  |  |                 {% include 'oscar/messages/no_results.html' %} | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  |             <div class="clearfix"></div> | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |             {% if paging %} | 
					
						
							| 
									
										
										
										
											2015-02-10 15:23:56 +01:00
										 |  |  |             {% if rtl %} | 
					
						
							|  |  |  |             <div id="pagination"> | 
					
						
							|  |  |  |                 <div class="pull-left"> | 
					
						
							| 
									
										
										
										
											2017-01-04 00:49:52 +01:00
										 |  |  |                   <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left"> | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  |                         {{ search_form_attrs(pageno+1) }} | 
					
						
							| 
									
										
										
										
											2015-02-10 15:23:56 +01:00
										 |  |  |                         <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-backward"></span> {{ _('next page') }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="pull-right"> | 
					
						
							|  |  |  |                     <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}"  class="pull-left"> | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  |                         {{ search_form_attrs(pageno-1) }} | 
					
						
							| 
									
										
										
										
											2015-02-10 15:23:56 +01:00
										 |  |  |                         <button type="submit" class="btn btn-default" {% if pageno == 1 %}disabled{% endif %}><span class="glyphicon glyphicon-forward"></span> {{ _('previous page') }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div><!-- /#pagination --> | 
					
						
							|  |  |  |             <div class="clearfix"></div> | 
					
						
							|  |  |  |             {% else %} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |             <div id="pagination"> | 
					
						
							|  |  |  |                 <div class="pull-left"> | 
					
						
							|  |  |  |                     <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left"> | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  |                         {{ search_form_attrs(pageno-1) }} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                         <button type="submit" class="btn btn-default" {% if pageno == 1 %}disabled{% endif %}><span class="glyphicon glyphicon-backward"></span> {{ _('previous page') }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="pull-right"> | 
					
						
							|  |  |  |                     <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}"  class="pull-left"> | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  |                         {{ search_form_attrs(pageno+1) }} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                         <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-forward"></span> {{ _('next page') }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div><!-- /#pagination --> | 
					
						
							|  |  |  |             <div class="clearfix"></div> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							| 
									
										
										
										
											2015-02-10 15:23:56 +01:00
										 |  |  |             {% endif %} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |         </div><!-- /#main_results --> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  |         <div class="col-sm-4" id="sidebar_results"> | 
					
						
							| 
									
										
										
										
											2016-06-28 00:21:18 +02:00
										 |  |  |             {% if number_of_results != '0' %} | 
					
						
							| 
									
										
										
										
											2016-12-29 00:21:18 +01:00
										 |  |  |                 <p><small>{{ _('Number of results') }}: {{ number_of_results }}</small></p> | 
					
						
							| 
									
										
										
										
											2016-06-28 00:06:50 +02:00
										 |  |  |             {% endif %} | 
					
						
							| 
									
										
										
										
											2017-07-09 22:09:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |             {% if unresponsive_engines and results|length >= 1 %} | 
					
						
							|  |  |  |             <div class="alert alert-danger fade in" role="alert"> | 
					
						
							|  |  |  |                 <p>{{ _('Engines cannot retrieve results') }}:</p> | 
					
						
							|  |  |  |                 {% for engine_name, error_type in unresponsive_engines %} | 
					
						
							|  |  |  |                 {{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %} | 
					
						
							|  |  |  |                 {% endfor %} | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-08 01:01:33 +01:00
										 |  |  |             {% if infoboxes %} | 
					
						
							|  |  |  |                 {% for infobox in infoboxes %} | 
					
						
							|  |  |  |                     {% include 'oscar/infobox.html' %} | 
					
						
							|  |  |  |                 {% endfor %} | 
					
						
							| 
									
										
										
										
											2015-03-09 00:32:23 +01:00
										 |  |  |             {% endif %} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |             {% if suggestions %} | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							| 
									
										
										
										
											2014-10-05 15:29:21 +02:00
										 |  |  |                     <h4 class="panel-title">{{ _('Suggestions') }}</h4> | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="panel-body"> | 
					
						
							|  |  |  |                     {% for suggestion in suggestions %} | 
					
						
							| 
									
										
										
										
											2015-02-13 01:03:18 +01:00
										 |  |  |                     <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item"> | 
					
						
							| 
									
										
										
										
											2019-07-02 02:52:34 +02:00
										 |  |  |                         <input type="hidden" name="q" value="{{ query_prefix + suggestion }}"> | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                         <button type="submit" class="btn btn-default btn-xs">{{ suggestion }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							|  |  |  |                     {% endfor %} | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							| 
									
										
										
										
											2014-10-05 15:29:21 +02:00
										 |  |  |                     <h4 class="panel-title">{{ _('Links') }}</h4> | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="panel-body"> | 
					
						
							|  |  |  |                     <form role="form"> | 
					
						
							|  |  |  |                         <div class="form-group"> | 
					
						
							|  |  |  |                             <label for="search_url">{{ _('Search URL') }}</label> | 
					
						
							| 
									
										
										
										
											2017-01-04 00:49:52 +01:00
										 |  |  |                             <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ search_url() }}" readonly> | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                         </div> | 
					
						
							|  |  |  |                     </form> | 
					
						
							| 
									
										
										
										
											2015-03-09 00:32:23 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                     <label>{{ _('Download results') }}</label> | 
					
						
							|  |  |  |                     <div class="clearfix"></div> | 
					
						
							|  |  |  |                     {% for output_type in ('csv', 'json', 'rss') %} | 
					
						
							| 
									
										
										
										
											2015-02-13 01:03:18 +01:00
										 |  |  |                     <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download"> | 
					
						
							| 
									
										
										
										
											2017-02-10 19:26:26 +01:00
										 |  |  |                         {{ search_form_attrs(pageno) }} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                         <input type="hidden" name="format" value="{{ output_type }}"> | 
					
						
							|  |  |  |                         <button type="submit" class="btn btn-default">{{ output_type }}</button> | 
					
						
							|  |  |  |                     </form> | 
					
						
							| 
									
										
										
										
											2015-03-09 00:32:23 +01:00
										 |  |  |                     {% endfor %} | 
					
						
							| 
									
										
										
										
											2014-09-27 14:44:34 +02:00
										 |  |  |                     <div class="clearfix"></div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div><!-- /#sidebar_results --> | 
					
						
							| 
									
										
										
										
											2014-09-27 12:33:22 +02:00
										 |  |  |     </div> | 
					
						
							|  |  |  | {% endblock %} |