Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -97,7 +97,7 @@


{% macro search_link(text, q, method=None, time_range=None, lang=None, category=None) -%}
{% 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">
<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 %}
    {% if time_range %}
    <input type="hidden" name="time_range" value="{{ time_range }}" />
    <input type="hidden" name="time_range" value="{{ time_range }}" />
    {% endif %}
    {% endif %}
+1 −1
Original line number Original line Diff line number Diff line
@@ -131,7 +131,7 @@
                <h4 class="panel-title">{{ _('Suggestions') }}</h4>
                <h4 class="panel-title">{{ _('Suggestions') }}</h4>
                <p>
                <p>
                    {% for suggestion in suggestions %}
                    {% for suggestion in suggestions %}
                    {{ search_link(suggestion, suggestion, method) }}
                    {{ search_link(suggestion.title, suggestion.url, method) }}
                    {% endfor %}
                    {% endfor %}
                </p>
                </p>
            </div>
            </div>