| 12345678910111213141516171819202122 |
- {namespace ot=Opentalent\OtTemplating\ViewHelpers}
- <f:comment><!-- Pagination --></f:comment>
- <f:comment><!--
- This partial expects an ApiPagedCollection
- named {collection} as argument
- --></f:comment>
- <f:if condition="{collection.lastPage} > 0">
- <div class="pagination-bar">
- <p><f:translate key="pages"/>:</p>
- <ul>
- <f:for each="{collection.pages}" as="page">
- <li class="{f:if(condition: '{page}=={collection.currentPage}', then: 'current', else: '')}">
- <a href="{ot:request.withPage(page: page)}">
- {page}
- </a>
- </li>
- </f:for>
- </ul>
- </div>
- </f:if>
|