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:
Mike Javorski 2023-11-29 11:32:06 -08:00
parent ab4815fd88
commit dfc3397f55

View file

@ -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}