Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
infra
spot
Commits
cfa86928
Commit
cfa86928
authored
Nov 18, 2021
by
Israel Yago Pereira
Browse files
Merge branch '66-fix-suggestions' into 'master'
Fix broken sugestions UI Closes #66 See merge request e/cloud/my-spot!85
parents
5ed8fa56
4a5840b6
Changes
2
Show whitespace changes
Inline
Side-by-side
searx/templates/etheme/macros.html
View file @
cfa86928
...
...
@@ -97,7 +97,7 @@
{% macro search_link(text, q, method=None, time_range=None, lang=None, category=None) -%}
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('search') }}"
role=
"navigation"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
.title
}}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
{% if time_range %}
<input
type=
"hidden"
name=
"time_range"
value=
"{{ time_range }}"
/>
{% endif %}
...
...
searx/templates/etheme/results.html
View file @
cfa86928
...
...
@@ -131,7 +131,7 @@
<h4
class=
"panel-title"
>
{{ _('Suggestions') }}
</h4>
<p>
{% for suggestion in suggestions %}
{{ search_link(suggestion, suggestion, method) }}
{{ search_link(suggestion
.title
, suggestion
.url
, method) }}
{% endfor %}
</p>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment