mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
CSS: Add class previous- and next-page for pagination
This commit is contained in:
parent
43ecd1fc90
commit
66926a7a93
@ -16,13 +16,14 @@ if ($this->pageCount <= 1) return;
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $this->previous)) ?>"
|
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $this->previous)) ?>"
|
||||||
title="<?= $label ?>"
|
title="<?= $label ?>"
|
||||||
aria-label="<?= $label ?>">
|
aria-label="<?= $label ?>"
|
||||||
|
class="previous-page">
|
||||||
<?= $this->icon('angle-double-left') ?>
|
<?= $this->icon('angle-double-left') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li class="nav-item disabled" aria-hidden="true">
|
<li class="nav-item disabled" aria-hidden="true">
|
||||||
<span>
|
<span class="previous-page">
|
||||||
<span class="sr-only"><?= $this->translate('Previous page') ?></span>
|
<span class="sr-only"><?= $this->translate('Previous page') ?></span>
|
||||||
<?= $this->icon('angle-double-left') ?>
|
<?= $this->icon('angle-double-left') ?>
|
||||||
</span>
|
</span>
|
||||||
@ -65,13 +66,14 @@ if ($this->pageCount <= 1) return;
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $this->next)) ?>"
|
<a href="<?= Url::fromRequest()->overwriteParams(array('page' => $this->next)) ?>"
|
||||||
title="<?= $label ?>"
|
title="<?= $label ?>"
|
||||||
aria-label="<?= $label ?>">
|
aria-label="<?= $label ?>"
|
||||||
|
class="next-page">
|
||||||
<?= $this->icon('angle-double-right') ?>
|
<?= $this->icon('angle-double-right') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li class="disabled nav-item" aria-hidden="true">
|
<li class="disabled nav-item" aria-hidden="true">
|
||||||
<span>
|
<span class="next-page">
|
||||||
<span class="sr-only"><?= $this->translate('Next page') ?></span>
|
<span class="sr-only"><?= $this->translate('Next page') ?></span>
|
||||||
<?= $this->icon('angle-double-right') ?>
|
<?= $this->icon('angle-double-right') ?>
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user