on master help sign in
[enh] prettier search url display
01bebc0Adam Tauber
searx/templates/courgette/results.html+2−2
@@ -10,7 +10,7 @@
10 <div id="sidebar">
10 <div id="sidebar">
11 <div id="search_url">
11 <div id="search_url">
12 {{ _('Search URL') }}:
12 {{ _('Search URL') }}:
13− <input type="text" value="{{ base_url }}?q={{ q|urlencode }}&amp;pageno={{ pageno }}{% if selected_categories %}&amp;category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly />
13+ <input type="text" value="{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&amp;pageno={{ pageno }}{% endif %}" readonly />
14 </div>
14 </div>
15 <div id="apis">
15 <div id="apis">
16 {{ _('Download results') }}<br />
16 {{ _('Download results') }}<br />
@@ -84,4 +84,4 @@
84 </div>
84 </div>
85 {% endif %}
85 {% endif %}
86</div>
86</div>
87−{% endblock %}
87+{% endblock %}
searx/templates/default/results.html+1−1
@@ -11,7 +11,7 @@
11
11
12 <div id="search_url">
12 <div id="search_url">
13 {{ _('Search URL') }}:
13 {{ _('Search URL') }}:
14− <input type="text" value="{{ base_url }}?q={{ q|urlencode }}&amp;pageno={{ pageno }}{% if selected_categories %}&amp;category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly />
14+ <input type="text" value="{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&amp;pageno={{ pageno }}{% endif %}" readonly />
15 </div>
15 </div>
16 <div id="apis">
16 <div id="apis">
17 {{ _('Download results') }}
17 {{ _('Download results') }}
searx/templates/oscar/results.html+1−1
@@ -108,7 +108,7 @@
108 <form role="form">
108 <form role="form">
109 <div class="form-group">
109 <div class="form-group">
110 <label for="search_url">{{ _('Search URL') }}</label>
110 <label for="search_url">{{ _('Search URL') }}</label>
111− <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}&amp;pageno={{ pageno }}{% if selected_categories %}&amp;category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly>
111+ <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 %}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&amp;pageno={{ pageno }}{% endif %}" readonly>
112 </div>
112 </div>
113 </form>
113 </form>
114
114