diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-09-27 19:27:19 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-09-27 19:27:19 -0700 |
commit | 9abb83fdbc05294f186daeefff8c85cfda06b7d2 (patch) | |
tree | 1d04c83f88d67d844624ced65477f88f22d92455 /youtube/templates | |
parent | e68ac26b4e2c216dad41e22da91067e2ddc80d00 (diff) | |
download | yt-local-9abb83fdbc05294f186daeefff8c85cfda06b7d2.tar.lz yt-local-9abb83fdbc05294f186daeefff8c85cfda06b7d2.tar.xz yt-local-9abb83fdbc05294f186daeefff8c85cfda06b7d2.zip |
Extraction: Fix did_you_mean and showing_results_for
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/search.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube/templates/search.html b/youtube/templates/search.html index aef914a..8b803e7 100644 --- a/youtube/templates/search.html +++ b/youtube/templates/search.html @@ -29,10 +29,10 @@ <div id="result-info"> <div id="number-of-results">Approximately {{ '{:,}'.format(estimated_results) }} results ({{ '{:,}'.format(estimated_pages) }} pages)</div> {% if corrections['type'] == 'showing_results_for' %} - <div>Showing results for <a>{{ corrections['corrected_query']|safe }}</a></div> - <div>Search instead for <a href="{{ corrections['original_query_url'] }}">{{ corrections['original_query'] }}</a></div> + <div>Showing results for <a>{{ common_elements.text_runs(corrections['corrected_query_text']) }}</a></div> + <div>Search instead for <a href="{{ corrections['original_query_url'] }}">{{ corrections['original_query_text'] }}</a></div> {% elif corrections['type'] == 'did_you_mean' %} - <div>Did you mean <a href="{{ corrections['corrected_query_url'] }}">{{ corrections['corrected_query']|safe }}</a></div> + <div>Did you mean <a href="{{ corrections['corrected_query_url'] }}">{{ common_elements.text_runs(corrections['corrected_query_text']) }}</a></div> {% endif %} </div> <div class="item-list"> |