From 6ff57dfbe1b9c011b7bb3f0fce967fad70e5ca72 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 4 Mar 2014 18:53:56 +0100 Subject: [PATCH] [enh] linkable search url display --- searx/static/css/style.css | 2 ++ searx/templates/results.html | 4 ++++ searx/webapp.py | 1 + 3 files changed, 7 insertions(+) diff --git a/searx/static/css/style.css b/searx/static/css/style.css index a99e4cda0..4b2d3c36d 100644 --- a/searx/static/css/style.css +++ b/searx/static/css/style.css @@ -165,6 +165,8 @@ tr:hover { background: #DDDDDD; } #suggestions span { display: block; margin: 0 2px 2px 2px; padding: 0; } #suggestions form { display: block; } #suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #3498DB; color: #FFFFFF; border-radius: 4px; border: 0; cursor: pointer; } +#search_url { margin-top: 8px; } +#search_url input { border: 1px solid #888888; padding: 4px; color: #444444; width: 20em; display: block; margin: 4px; } #preferences { top: 10px; diff --git a/searx/templates/results.html b/searx/templates/results.html index 34195c866..9efb6ea4b 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -18,6 +18,10 @@ {% endif %} +
+ {{ _('Search URL') }}: + +
{{ _('Download results') }} {% for output_type in ('csv', 'json', 'rss') %} diff --git a/searx/webapp.py b/searx/webapp.py index 4dbfcd6c1..ab6d522c1 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -182,6 +182,7 @@ def index(): selected_categories=search.categories, paging=search.paging, pageno=search.pageno, + base_url=get_base_url(), suggestions=search.suggestions )