[TWIG] Improved templates HTML structure, removed unnecessary element nesting, and refactored content sectioning

[COMPONENTS][Search] Refactored widget event as 'PrependRightPanel' (making it able to accomodate more generic blocks)
This commit is contained in:
2022-01-17 16:32:41 +00:00
committed by Hugo Sales
parent 242fe3fd6e
commit 692ecf1c99
17 changed files with 224 additions and 155 deletions

View File

@@ -130,7 +130,7 @@ class Search extends FeedController
}
return [
'_template' => 'search/show.html.twig',
'_template' => 'search/view.html.twig',
'actor' => $actor,
'search_form' => Comp\Search::searchForm($request, query: $q, add_subscribe: !\is_null($actor)),
'search_builder_form' => $search_builder_form->createView(),