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

Commit d2ef9c64 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Fix search corrections render

Fix: #54
parent 9c5cc52c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -96,7 +96,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('index') }}" role="navigation">
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="navigation">
    <input type="hidden" name="q" value="{{ q }}" />
    <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 }}" />
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@
            <div class="result" id="corrections">
            <div class="result" id="corrections">
                <span class="text-muted">{{ _('Did you mean:') }}
                <span class="text-muted">{{ _('Did you mean:') }}
                    {% for correction in corrections %}
                    {% for correction in corrections %}
                    {{ search_link(correction, correction, method) }}
                    {{ search_link(correction.title, correction.url, method) }}
                    {% endfor %}
                    {% endfor %}
                </span>
                </span>
                ?
                ?