Remove button next and previous when there are no more pages. #1052
This commit is contained in:
parent
016754b67c
commit
b69f795038
|
@ -48,9 +48,11 @@
|
||||||
<ul class="pagination flex-wrap">
|
<ul class="pagination flex-wrap">
|
||||||
|
|
||||||
<!-- Previous button -->
|
<!-- Previous button -->
|
||||||
<li class="page-item mr-2 <?php if (!Paginator::showPrev()) echo 'disabled' ?>">
|
<?php if (Paginator::showPrev()): ?>
|
||||||
|
<li class="page-item mr-2">
|
||||||
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1">◀ <?php echo $L->get('Previous'); ?></a>
|
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1">◀ <?php echo $L->get('Previous'); ?></a>
|
||||||
</li>
|
</li>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Home button -->
|
<!-- Home button -->
|
||||||
<li class="page-item <?php if (Paginator::currentPage()==1) echo 'disabled' ?>">
|
<li class="page-item <?php if (Paginator::currentPage()==1) echo 'disabled' ?>">
|
||||||
|
@ -58,9 +60,11 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- Next button -->
|
<!-- Next button -->
|
||||||
<li class="page-item ml-2 <?php if (!Paginator::showNext()) echo 'disabled' ?>">
|
<?php if (Paginator::showNext()): ?>
|
||||||
|
<li class="page-item ml-2">
|
||||||
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $L->get('Next'); ?> ►</a>
|
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $L->get('Next'); ?> ►</a>
|
||||||
</li>
|
</li>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue