|
@@ -1,6 +1,6 @@
|
1
|
1
|
{% extends "oscar/base.html" %}
|
2
|
2
|
{% block title %}{{ q }} - {% endblock %}
|
3
|
|
-{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}">{% endblock %}
|
|
3
|
+{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}&time_range={{ time_range }}">{% endblock %}
|
4
|
4
|
{% block content %}
|
5
|
5
|
<div class="row">
|
6
|
6
|
<div class="col-sm-8" id="main_results">
|
|
@@ -41,6 +41,7 @@
|
41
|
41
|
{% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
|
42
|
42
|
<input type="hidden" name="q" value="{{ q }}" />
|
43
|
43
|
<input type="hidden" name="pageno" value="{{ pageno+1 }}" />
|
|
44
|
+ <input type="hidden" name="time_range" value="{{ time_range }}" />
|
44
|
45
|
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-backward"></span> {{ _('next page') }}</button>
|
45
|
46
|
</form>
|
46
|
47
|
</div>
|
|
@@ -48,6 +49,7 @@
|
48
|
49
|
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
|
49
|
50
|
{% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
|
50
|
51
|
<input type="hidden" name="pageno" value="{{ pageno-1 }}" />
|
|
52
|
+ <input type="hidden" name="time_range" value="{{ time_range }}" />
|
51
|
53
|
<button type="submit" class="btn btn-default" {% if pageno == 1 %}disabled{% endif %}><span class="glyphicon glyphicon-forward"></span> {{ _('previous page') }}</button>
|
52
|
54
|
</form>
|
53
|
55
|
</div>
|
|
@@ -60,6 +62,7 @@
|
60
|
62
|
<input type="hidden" name="q" value="{{ q }}" />
|
61
|
63
|
{% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
|
62
|
64
|
<input type="hidden" name="pageno" value="{{ pageno-1 }}" />
|
|
65
|
+ <input type="hidden" name="time_range" value="{{ time_range }}" />
|
63
|
66
|
<button type="submit" class="btn btn-default" {% if pageno == 1 %}disabled{% endif %}><span class="glyphicon glyphicon-backward"></span> {{ _('previous page') }}</button>
|
64
|
67
|
</form>
|
65
|
68
|
</div>
|
|
@@ -68,6 +71,7 @@
|
68
|
71
|
{% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
|
69
|
72
|
<input type="hidden" name="q" value="{{ q }}" />
|
70
|
73
|
<input type="hidden" name="pageno" value="{{ pageno+1 }}" />
|
|
74
|
+ <input type="hidden" name="time_range" value="{{ time_range }}" />
|
71
|
75
|
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-forward"></span> {{ _('next page') }}</button>
|
72
|
76
|
</form>
|
73
|
77
|
</div>
|
|
@@ -118,7 +122,7 @@
|
118
|
122
|
<form role="form">
|
119
|
123
|
<div class="form-group">
|
120
|
124
|
<label for="search_url">{{ _('Search URL') }}</label>
|
121
|
|
- <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}" readonly>
|
|
125
|
+ <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ 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 %}" readonly>
|
122
|
126
|
</div>
|
123
|
127
|
</form>
|
124
|
128
|
|
|
@@ -130,6 +134,7 @@
|
130
|
134
|
<input type="hidden" name="format" value="{{ output_type }}">
|
131
|
135
|
{% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1">{% endfor %}
|
132
|
136
|
<input type="hidden" name="pageno" value="{{ pageno }}">
|
|
137
|
+ <input type="hidden" name="time_range" value="{{ time_range }}" />
|
133
|
138
|
<button type="submit" class="btn btn-default">{{ output_type }}</button>
|
134
|
139
|
</form>
|
135
|
140
|
{% endfor %}
|