meilisearch/Resources/Private/Partials/Search/LastSearches.html

36 lines
1.0 KiB
HTML
Raw Permalink Normal View History

2021-04-17 00:26:33 +02:00
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
2021-04-17 21:20:54 +02:00
xmlns:s="http://typo3.org/ns/WapplerSystems/Meilisearch/ViewHelpers">
2021-04-17 00:26:33 +02:00
<f:section name="LastSearches">
<s:widget.lastSearches>
<f:if condition="{lastSearches}">
2021-04-17 21:20:54 +02:00
<div id="tx-meilisearch-lastsearches" class="secondaryContentSection panel">
2021-04-17 00:26:33 +02:00
<div class="panel-heading">
<h3 class="panel-title">
<span class="glyphicon glyphicon-time"></span>
<a data-toggle="collapse" data-parent="#accordion" href="#lastSearches">
<s:translate key="lastSearches">Last searches</s:translate>
</a>
</h3>
</div>
<div class="list-group panel-collapse collapse" id="lastSearches">
<div class="panel-body">
<f:for each="{lastSearches}" as="searchedFor">
<li class="list-group-item">
2021-04-17 21:20:54 +02:00
<a href="{s:uri.search.startNewSearch(queryString: searchedFor)}" class="meilisearch-ajaxified">{searchedFor}</a>
2021-04-17 00:26:33 +02:00
</li>
</f:for>
</div>
</div>
</div>
</f:if>
</s:widget.lastSearches>
</f:section>
2021-04-17 21:20:54 +02:00
</html>