diff options
| author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-05 15:10:38 +0100 |
|---|---|---|
| committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-05 15:10:38 +0100 |
| commit | e30f43bd81b3d7a682b3bb65eacd20ddb46b5230 (patch) | |
| tree | 0cd30184ab574b4177ad3f04f9826ba82bfbeda1 /searx/templates/results.html | |
| parent | 07f83cab224d2ddf1f7fd8b544f2f2d6679c2416 (diff) | |
| parent | 73ab92544a5240bcbe7a1d39ee50ad809125db30 (diff) | |
Merge remote-tracking branch 'asciimoo/master'
Diffstat (limited to 'searx/templates/results.html')
| -rw-r--r-- | searx/templates/results.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/searx/templates/results.html b/searx/templates/results.html index 34195c866..8094e96b6 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block title %}{{ q }} - {% endblock %} {% block content %} -<div class="right"><a href="/preferences" id="preferences"><span>preferences</span></a></div> +<div class="right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div> <div class="small search"> {% include 'search.html' %} </div> @@ -10,18 +10,22 @@ {% if suggestions %} <div id="suggestions"><span>{{ _('Suggestions') }}</span> {% for suggestion in suggestions %} - <form method="post" action="/"> - <input type="hidden" name="q" value="{{suggestion}}"> + <form method="post" action="{{ url_for('index') }}"> + <input type="hidden" name="q" value="{{ suggestion }}"> <input type="submit" value="{{ suggestion }}" /> </form> {% endfor %} </div> {% endif %} + <div id="search_url"> + {{ _('Search URL') }}: + <input type="text" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_") }}{% endif %}" readonly="" /> + </div> <div id="apis"> {{ _('Download results') }} {% for output_type in ('csv', 'json', 'rss') %} - <form method="post" action="/"> + <form method="post" action="{{ url_for('index') }}"> <div class="left"> <input type="hidden" name="q" value="{{ q }}" /> <input type="hidden" name="format" value="{{ output_type }}" /> @@ -48,7 +52,7 @@ {% if paging %} <div id="pagination"> {% if pageno > 1 %} - <form method="post" action="/"> + <form method="post" action="{{ url_for('index') }}"> <div class="left"> <input type="hidden" name="q" value="{{ q }}" /> {% for category in selected_categories %} @@ -59,7 +63,7 @@ </div> </form> {% endif %} - <form method="post" action="/"> + <form method="post" action="{{ url_for('index') }}"> <div class="left"> {% for category in selected_categories %} <input type="hidden" name="category_{{ category }}" value="1"/> |