Bugfix: Always show pagination controls on home page if offset > 0
If you have items_per_page+1 items in your list and delete the sole item on the second page, you would end up stuck without a way to navigate to the first page.
This commit is contained in:
parent
ab4815fd88
commit
dfc3397f55
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{if $myitems_count > $opt.items_per_page}
|
||||
{if $myitems_count > $opt.items_per_page || $offset > 0}
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
{if $offset >= $opt.items_per_page}
|
||||
|
|
Loading…
Add table
Reference in a new issue