mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
parent
3ae4f762d8
commit
b7d3f0e54c
@ -6,14 +6,14 @@ if ($xAxisPaginator->count() <= 1 && $yAxisPaginator->count() <= 1) {
|
|||||||
return; // Display this pagination only if there are multiple pages
|
return; // Display this pagination only if there are multiple pages
|
||||||
}
|
}
|
||||||
|
|
||||||
$fromTo = $this->translate('%s: %d to %d of %d');
|
$fromTo = t('%s: %d to %d of %d');
|
||||||
$xAxisPages = $xAxisPaginator->getPages('all');
|
$xAxisPages = $xAxisPaginator->getPages('all');
|
||||||
$yAxisPages = $yAxisPaginator->getPages('all');
|
$yAxisPages = $yAxisPaginator->getPages('all');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="pivot-pagination">
|
<div class="pivot-pagination">
|
||||||
<span><?= $this->translate('Navigation'); ?></span>
|
<span><?= t('Navigation'); ?></span>
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($yAxisPages->pagesInRange as $yAxisPage): ?>
|
<?php foreach ($yAxisPages->pagesInRange as $yAxisPage): ?>
|
||||||
@ -25,13 +25,13 @@ $yAxisPages = $yAxisPaginator->getPages('all');
|
|||||||
array('page' => $xAxisPage . ',' . $yAxisPage)
|
array('page' => $xAxisPage . ',' . $yAxisPage)
|
||||||
)->getAbsoluteUrl(); ?>" title="<?= sprintf(
|
)->getAbsoluteUrl(); ?>" title="<?= sprintf(
|
||||||
$fromTo,
|
$fromTo,
|
||||||
$this->translate('Hosts'),
|
t('Hosts'),
|
||||||
($yAxisPage - 1) * $yAxisPages->itemCountPerPage + 1,
|
($yAxisPage - 1) * $yAxisPages->itemCountPerPage + 1,
|
||||||
$yAxisPage === $yAxisPages->last ? $yAxisPages->totalItemCount : $yAxisPage * $yAxisPages->itemCountPerPage,
|
$yAxisPage === $yAxisPages->last ? $yAxisPages->totalItemCount : $yAxisPage * $yAxisPages->itemCountPerPage,
|
||||||
$yAxisPages->totalItemCount
|
$yAxisPages->totalItemCount
|
||||||
) . '; ' . sprintf(
|
) . '; ' . sprintf(
|
||||||
$fromTo,
|
$fromTo,
|
||||||
$this->translate('Services'),
|
t('Services'),
|
||||||
($xAxisPage - 1) * $xAxisPages->itemCountPerPage + 1,
|
($xAxisPage - 1) * $xAxisPages->itemCountPerPage + 1,
|
||||||
$xAxisPage === $xAxisPages->last ? $xAxisPages->totalItemCount : $xAxisPage * $xAxisPages->itemCountPerPage,
|
$xAxisPage === $xAxisPages->last ? $xAxisPages->totalItemCount : $xAxisPage * $xAxisPages->itemCountPerPage,
|
||||||
$xAxisPages->totalItemCount
|
$xAxisPages->totalItemCount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user