mirror of https://github.com/searxng/searxng.git
[enh] linkable search url display
This commit is contained in:
parent
71c2e8222b
commit
6ff57dfbe1
|
@ -165,6 +165,8 @@ tr:hover { background: #DDDDDD; }
|
||||||
#suggestions span { display: block; margin: 0 2px 2px 2px; padding: 0; }
|
#suggestions span { display: block; margin: 0 2px 2px 2px; padding: 0; }
|
||||||
#suggestions form { display: block; }
|
#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; }
|
#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 {
|
#preferences {
|
||||||
top: 10px;
|
top: 10px;
|
||||||
|
|
|
@ -18,6 +18,10 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div id="search_url">
|
||||||
|
{{ _('Search URL') }}:
|
||||||
|
<input type="text" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}" readonly="" />
|
||||||
|
</div>
|
||||||
<div id="apis">
|
<div id="apis">
|
||||||
{{ _('Download results') }}
|
{{ _('Download results') }}
|
||||||
{% for output_type in ('csv', 'json', 'rss') %}
|
{% for output_type in ('csv', 'json', 'rss') %}
|
||||||
|
|
|
@ -182,6 +182,7 @@ def index():
|
||||||
selected_categories=search.categories,
|
selected_categories=search.categories,
|
||||||
paging=search.paging,
|
paging=search.paging,
|
||||||
pageno=search.pageno,
|
pageno=search.pageno,
|
||||||
|
base_url=get_base_url(),
|
||||||
suggestions=search.suggestions
|
suggestions=search.suggestions
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue