@@ -15,7 +15,68 @@
15 {% include 'oscar/search.html' %}
15 {% include 'oscar/search.html' %}
17 <div class="row">
17 <div class="row">
18− <div class="col-sm-8" id="main_results">
18+ <div class="col-sm-4 col-sm-push-8" id="sidebar_results">
19+ {% if number_of_results != '0' -%}
20+ <p><small>{{ _('Number of results') }}: {{ number_of_results }}</small></p>
23+ {% if unresponsive_engines and results|length >= 1 -%}
24+ <div class="alert alert-danger fade in" role="alert">
25+ <p>{{ _('Engines cannot retrieve results') }}:</p>
26+ {%- for engine_name, error_type in unresponsive_engines -%}
27+ {{- engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}{{- "" -}}
33+ {% for infobox in infoboxes %}
34+ {% include 'oscar/infobox.html' %}{{- "\n\n" -}}
39+ <div class="panel panel-default">
40+ <div class="panel-heading">
41+ <h4 class="panel-title">{{ _('Suggestions') }}</h4>
43+ <div class="panel-body">
44+ {% for suggestion in suggestions %}
45+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item">
46+ <input type="hidden" name="q" value="{{ suggestion.url }}">
47+ <button type="submit" class="btn btn-default btn-xs">{{ suggestion.title }}</button>
54+ <div class="panel panel-default">
55+ <div class="panel-heading">{{- "" -}}
56+ <h4 class="panel-title">{{ _('Links') }}</h4>{{- "" -}}
58+ <div class="panel-body">
59+ <form role="form">{{- "" -}}
60+ <div class="form-group">{{- "" -}}
61+ <label for="search_url">{{ _('Search URL') }}</label>{{- "" -}}
62+ <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ search_url() }}" readonly>{{- "" -}}
65+ <label>{{ _('Download results') }}</label>
66+ <div class="clearfix"></div>
67+ {% for output_type in ('csv', 'json', 'rss') %}
68+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download">
69+ {{- search_form_attrs(pageno) -}}
70+ <input type="hidden" name="format" value="{{ output_type }}">{{- "" -}}
71+ <button type="submit" class="btn btn-default">{{ output_type }}</button>{{- "" -}}
74+ <div class="clearfix"></div>
77+ </div><!-- /#sidebar_results -->
79+ <div class="col-sm-8 col-sm-pull-4" id="main_results">
19 <h1 class="sr-only">{{ _('Search results') }}</h1>
80 <h1 class="sr-only">{{ _('Search results') }}</h1>
21 {% if corrections -%}
82 {% if corrections -%}
@@ -91,66 +152,5 @@
91 {% endif %}
152 {% endif %}
92 {% endif %}
153 {% endif %}
93 </div><!-- /#main_results -->
154 </div><!-- /#main_results -->
95− <div class="col-sm-4" id="sidebar_results">
96− {% if number_of_results != '0' -%}
97− <p><small>{{ _('Number of results') }}: {{ number_of_results }}</small></p>
100− {% if unresponsive_engines and results|length >= 1 -%}
101− <div class="alert alert-danger fade in" role="alert">
102− <p>{{ _('Engines cannot retrieve results') }}:</p>
103− {%- for engine_name, error_type in unresponsive_engines -%}
104− {{- engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}{{- "" -}}
110− {% for infobox in infoboxes %}
111− {% include 'oscar/infobox.html' %}{{- "\n\n" -}}
115− {% if suggestions %}
116− <div class="panel panel-default">
117− <div class="panel-heading">
118− <h4 class="panel-title">{{ _('Suggestions') }}</h4>
120− <div class="panel-body">
121− {% for suggestion in suggestions %}
122− <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item">
123− <input type="hidden" name="q" value="{{ suggestion.url }}">
124− <button type="submit" class="btn btn-default btn-xs">{{ suggestion.title }}</button>
131− <div class="panel panel-default">
132− <div class="panel-heading">{{- "" -}}
133− <h4 class="panel-title">{{ _('Links') }}</h4>{{- "" -}}
135− <div class="panel-body">
136− <form role="form">{{- "" -}}
137− <div class="form-group">{{- "" -}}
138− <label for="search_url">{{ _('Search URL') }}</label>{{- "" -}}
139− <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ search_url() }}" readonly>{{- "" -}}
142− <label>{{ _('Download results') }}</label>
143− <div class="clearfix"></div>
144− {% for output_type in ('csv', 'json', 'rss') %}
145− <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download">
146− {{- search_form_attrs(pageno) -}}
147− <input type="hidden" name="format" value="{{ output_type }}">{{- "" -}}
148− <button type="submit" class="btn btn-default">{{ output_type }}</button>{{- "" -}}
151− <div class="clearfix"></div>
154− </div><!-- /#sidebar_results -->
156{% endblock %}
156{% endblock %}