[COMPONENT][Search] Add title so it's clearer these are search results

This commit is contained in:
Hugo Sales 2021-12-07 20:36:25 +00:00
parent f9fedfb131
commit b8e9c2ce41
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,7 @@ class Search extends Controller
return [ return [
'_template' => 'search/show.html.twig', '_template' => 'search/show.html.twig',
'query' => $q,
'notes' => $notes, 'notes' => $notes,
'actors' => $actors, 'actors' => $actors,
'page' => 1, // TODO paginate 'page' => 1, // TODO paginate

View File

@ -15,6 +15,11 @@
</label> </label>
{% endif %} {% endif %}
<div class="section-widget-padded">
{% set query = query|escape %}
<h2>{% trans %}Search results for %query%{% endtrans %}</h2>
</div>
{# Backwards compatibility with hAtom 0.1 #} {# Backwards compatibility with hAtom 0.1 #}
<main class="feed" tabindex="0" role="feed"> <main class="feed" tabindex="0" role="feed">
<div class="h-feed hfeed notes"> <div class="h-feed hfeed notes">