meilisearch/Resources/Private/Templates/ViewHelpers/Widget/ResultPaginate/Index.html

82 lines
2.8 KiB
HTML
Raw 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
data-namespace-typo3-fluid="true">
<f:if condition="{configuration.insertAbove}">
<f:render section="paginator" arguments="{pagination: contentArguments.pagination, configuration:configuration, resultSet:resultSet}" />
</f:if>
<f:renderChildren arguments="{contentArguments}" />
<f:if condition="{configuration.insertBelow}">
<f:render section="paginator" arguments="{pagination: contentArguments.pagination, configuration:configuration, resultSet:resultSet}" />
</f:if>
<f:section name="paginator">
<f:if condition="{pagination.numberOfPages} > 1">
2021-04-17 21:20:54 +02:00
<div class="meilisearch-pagination">
2021-04-17 00:26:33 +02:00
<ul class="pagination">
<f:if condition="{pagination.previousPage}">
<li class="previous">
<f:if condition="{pagination.previousPage} > 1">
<f:then>
2021-04-17 21:20:54 +02:00
<a href="{s:uri.paginate.resultPage(page: pagination.previousPage)}" class="meilisearch-ajaxified">
2021-04-17 00:26:33 +02:00
<f:if condition="{s:translate(key: 'paginate_previous')}">
<f:then><s:translate key="paginate_previous" /></f:then>
<f:else>&laquo;</f:else>
</f:if>
</a>
</f:then>
<f:else>
2021-04-17 21:20:54 +02:00
<a href="{s:uri.paginate.resultPage()}" class="meilisearch-ajaxified">
2021-04-17 00:26:33 +02:00
<f:if condition="{s:translate(key: 'paginate_previous')}">
<f:then><s:translate key="paginate_previous" /></f:then>
<f:else>&laquo;</f:else>
</f:if>
</a>
</f:else>
</f:if>
</li>
</f:if>
<f:if condition="{pagination.hasLessPages}">
<li><a>....</a></li>
</f:if>
<f:for each="{pagination.pages}" as="page">
<f:if condition="{page.isCurrent}">
<f:then>
<li class="active">
2021-04-17 21:20:54 +02:00
<a href="{s:uri.paginate.resultPage()}" class="meilisearch-ajaxified">{page.number}</a>
2021-04-17 00:26:33 +02:00
</li>
</f:then>
<f:else>
<li>
<f:if condition="{page.number} > 1">
<f:then>
2021-04-17 21:20:54 +02:00
<a href="{s:uri.paginate.resultPage(page: page.number)}" class="meilisearch-ajaxified">{page.number}</a>
2021-04-17 00:26:33 +02:00
</f:then>
<f:else>
2021-04-17 21:20:54 +02:00
<a href="{s:uri.paginate.resultPage()}" class="meilisearch-ajaxified">{page.number}</a>
2021-04-17 00:26:33 +02:00
</f:else>
</f:if>
</li>
</f:else>
</f:if>
</f:for>
<f:if condition="{pagination.hasMorePages}">
<li><a>....</a></li>
</f:if>
<f:if condition="{pagination.nextPage}">
<li class="last next">
2021-04-17 21:20:54 +02:00
<a href="{s:uri.paginate.resultPage(page: pagination.nextPage)}" class="meilisearch-ajaxified">
2021-04-17 00:26:33 +02:00
<f:if condition="{s:translate(key: 'paginate_next')}">
<f:then><s:translate key="paginate_next" /></f:then>
<f:else>&raquo;</f:else>
</f:if>
</a>
</li>
</f:if>
</ul>
</div>
</f:if>
</f:section>