summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-05-19 18:58:04 +0200
committerAdam Tauber <asciimoo@gmail.com>2015-05-19 18:58:04 +0200
commit01bebc0c30529e98b4d002b68485022090089617 (patch)
treec6f93fba9a7535b12d88c66da69669fb1a780dd4
parentb09aaf126e38106682e88e4fcd2760344fd839f2 (diff)
downloadsearxng-01bebc0c30529e98b4d002b68485022090089617.tar.gz
searxng-01bebc0c30529e98b4d002b68485022090089617.zip
[enh] prettier search url display
-rw-r--r--searx/templates/courgette/results.html4
-rw-r--r--searx/templates/default/results.html2
-rw-r--r--searx/templates/oscar/results.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/courgette/results.html b/searx/templates/courgette/results.html
index 619c99763..3ffbd5882 100644
--- a/searx/templates/courgette/results.html
+++ b/searx/templates/courgette/results.html
@@ -10,7 +10,7 @@
<div id="sidebar">
<div id="search_url">
{{ _('Search URL') }}:
- <input type="text" value="{{ base_url }}?q={{ q|urlencode }}&amp;pageno={{ pageno }}{% if selected_categories %}&amp;category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly />
+ <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 />
</div>
<div id="apis">
{{ _('Download results') }}<br />
@@ -84,4 +84,4 @@
</div>
{% endif %}
</div>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/searx/templates/default/results.html b/searx/templates/default/results.html
index 3f7712e53..927b7b8a8 100644
--- a/searx/templates/default/results.html
+++ b/searx/templates/default/results.html
@@ -11,7 +11,7 @@
<div id="search_url">
{{ _('Search URL') }}:
- <input type="text" value="{{ base_url }}?q={{ q|urlencode }}&amp;pageno={{ pageno }}{% if selected_categories %}&amp;category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly />
+ <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 />
</div>
<div id="apis">
{{ _('Download results') }}
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html
index 155194546..9f9bdf1e1 100644
--- a/searx/templates/oscar/results.html
+++ b/searx/templates/oscar/results.html
@@ -108,7 +108,7 @@
<form role="form">
<div class="form-group">
<label for="search_url">{{ _('Search URL') }}</label>
- <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>
+ <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>
</div>
</form>