Skip to content

Commit

Permalink
added condition to hide pagination if there is only one page
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Kuhn committed Feb 13, 2018
1 parent 132eab7 commit 5fa78b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Component/Pagination.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ prototype(Breadlesscode.Listable:Pagination) < prototype(Neos.Fusion:Component)
paginationConfig = ${ [] }

@process.wrapPagination = ${ '<ul class="pagination">' + value + '</ul>' }
@if.hasOnlyOnePage = ${ props.totalCount > props.itemsPerPage }

renderer = Neos.Fusion:Collection {
collection = Breadlesscode.Listable:PaginationArray {
Expand All @@ -15,7 +16,6 @@ prototype(Breadlesscode.Listable:Pagination) < prototype(Neos.Fusion:Component)
itemsPerPage = ${ props.itemsPerPage }
paginationConfig = ${ props.paginationConfig }
}

itemRenderer = Breadlesscode.Listable:PaginationItem {
uri = Neos.Neos:NodeUri {
node = ${ documentNode }
Expand Down

0 comments on commit 5fa78b1

Please sign in to comment.