mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Suggestions: use RawTextQuery to make the suggestions URLs. Update all themes accordingly.
This commit is contained in:
parent
ddee4861ce
commit
c7220b40ea
8 changed files with 25 additions and 14 deletions
|
|
@ -42,8 +42,8 @@
|
|||
<div id="suggestions"><span>{{ _('Suggestions') }}</span>
|
||||
{% for suggestion in suggestions %}
|
||||
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
||||
<input type="hidden" name="q" value="{{ suggestion }}">
|
||||
<input type="submit" value="{{ suggestion }}" />
|
||||
<input type="hidden" name="q" value="{{ suggestion.url }}">
|
||||
<input type="submit" value="{{ suggestion.title }}" />
|
||||
</form>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@
|
|||
{% set first = true %}
|
||||
{% for suggestion in suggestions %}
|
||||
{% if not first %} • {% endif %}<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
||||
<input type="hidden" name="q" value="{{ suggestion }}">
|
||||
<input type="submit" class="suggestion" value="{{ suggestion }}" />
|
||||
<input type="hidden" name="q" value="{{ suggestion.url }}">
|
||||
<input type="submit" class="suggestion" value="{{ suggestion.title }}" />
|
||||
</form>
|
||||
{% set first = false %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -118,8 +118,8 @@
|
|||
<div class="panel-body">
|
||||
{% for suggestion in suggestions %}
|
||||
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} suggestion_item">
|
||||
<input type="hidden" name="q" value="{{ query_prefix + suggestion }}">
|
||||
<button type="submit" class="btn btn-default btn-xs">{{ suggestion }}</button>
|
||||
<input type="hidden" name="q" value="{{ suggestion.url }}">
|
||||
<button type="submit" class="btn btn-default btn-xs">{{ suggestion.title }}</button>
|
||||
</form>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -50,11 +50,11 @@
|
|||
<div class="wrapper">
|
||||
{% for suggestion in suggestions %}
|
||||
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
||||
<input type="hidden" name="q" value="{{ suggestion }}">
|
||||
<input type="hidden" name="q" value="{{ suggestion.url }}">
|
||||
<input type="hidden" name="language" value="{{ current_language }}">
|
||||
<input type="hidden" name="safesearch" value="{{ safesearch }}">
|
||||
<input type="hidden" name="theme" value="{{ theme }}">
|
||||
<input type="submit" class="suggestion" value="• {{ suggestion }}">
|
||||
<input type="submit" class="suggestion" value="• {{ suggestion.title }}">
|
||||
</form>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue