Commit cfa86928 authored by Israel Yago Pereira's avatar 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
......@@ -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 %}
......
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment