Created
October 6, 2011 17:41
-
-
Save tiggr/1268067 to your computer and use it in GitHub Desktop.
patched paginate fluid template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:if condition="{configuration.insertAbove}"> | |
<f:render section="paginator" arguments="{pagination: pagination, filter:filter}" /> | |
</f:if> | |
<f:renderChildren arguments="{contentArguments}" /> | |
<f:if condition="{configuration.insertBelow}"> | |
<f:render section="paginator" arguments="{pagination: pagination, filter:filter}" /> | |
</f:if> | |
<f:section name="paginator"> | |
<ul class="pagebrowser"> | |
<f:if condition="{pagination.previousPage}"> | |
<li class="previous"> | |
<f:if condition="{pagination.previousPage} > 1"> | |
<f:then> | |
<f:widget.link arguments="{currentPage: pagination.previousPage}" actionArguments="{filter}"><</f:widget.link> | |
</f:then> | |
<f:else> | |
<f:widget.link actionArguments="{filter}"><</f:widget.link> | |
</f:else> | |
</f:if> | |
</li> | |
</f:if> | |
<f:for each="{pagination.pages}" as="page"> | |
<f:if condition="{page.isCurrent}"> | |
<f:then> | |
<li class="current"> | |
<span class="act">{page.number}</span> | |
</li> | |
</f:then> | |
<f:else> | |
<li> | |
<f:if condition="{page.number} > 1"> | |
<f:then> | |
<f:widget.link arguments="{currentPage: page.number}" actionArguments="{filter}">{page.number}</f:widget.link> | |
</f:then> | |
<f:else> | |
<f:widget.link actionArguments="{filter}">{page.number}</f:widget.link> | |
</f:else> | |
</f:if> | |
</li> | |
</f:else> | |
</f:if> | |
</f:for> | |
<f:if condition="{pagination.nextPage}"> | |
<li class="next"> | |
<f:widget.link arguments="{currentPage: pagination.nextPage}" actionArguments="{filter}">></f:widget.link> | |
</li> | |
</f:if> | |
</ul> | |
</f:section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment