diff --git a/src/Components/DatagridPaginator/templates/data_grid_paginator.latte b/src/Components/DatagridPaginator/templates/data_grid_paginator.latte index 132676c8..fb9cccb8 100644 --- a/src/Components/DatagridPaginator/templates/data_grid_paginator.latte +++ b/src/Components/DatagridPaginator/templates/data_grid_paginator.latte @@ -7,12 +7,15 @@ {var $link = [$control->getParent(), link]}
+ {capture $firstButton} + {='ublaboo_datagrid.previous'|translate} + {/capture} + {if $paginator->isFirst()} - + {$firstButton} {else} - {/if} - {='contributte_datagrid.previous'|translate} {foreach $steps as $step} {if $step == $paginator->page} @@ -24,10 +27,13 @@ {if $iterator->nextValue > $step + 1}{/if} {/foreach} + {capture $lastButton} + {='ublaboo_datagrid.next'|translate} + {/capture} + {if $paginator->isLast()} - {='contributte_datagrid.next'|translate} + {$lastButton} {else} - {/if} -