JoystickPagination view script: show axis type (x/y) in titles
refs #8110
This commit is contained in:
parent
a02d9cecfe
commit
ebc539bc37
|
@ -6,7 +6,7 @@ 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 = t('%s: %d to %d of %d');
|
$fromTo = t('%s: %d to %d of %d (on the %s-axis)');
|
||||||
$xAxisPages = $xAxisPaginator->getPages('all');
|
$xAxisPages = $xAxisPaginator->getPages('all');
|
||||||
$yAxisPages = $yAxisPaginator->getPages('all');
|
$yAxisPages = $yAxisPaginator->getPages('all');
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
|
||||||
t('Hosts'),
|
t('Hosts'),
|
||||||
($prevYAxisPage - 1) * $yAxisPages->itemCountPerPage + 1,
|
($prevYAxisPage - 1) * $yAxisPages->itemCountPerPage + 1,
|
||||||
$prevYAxisPage * $yAxisPages->itemCountPerPage,
|
$prevYAxisPage * $yAxisPages->itemCountPerPage,
|
||||||
$yAxisPages->totalItemCount
|
$yAxisPages->totalItemCount,
|
||||||
|
'y'
|
||||||
); ?>"><?= $this->icon('up-open'); ?></a>
|
); ?>"><?= $this->icon('up-open'); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('up-open'); ?>
|
<?= $this->icon('up-open'); ?>
|
||||||
|
@ -53,7 +54,8 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
|
||||||
t('Services'),
|
t('Services'),
|
||||||
($prevXAxisPage - 1) * $xAxisPages->itemCountPerPage + 1,
|
($prevXAxisPage - 1) * $xAxisPages->itemCountPerPage + 1,
|
||||||
$prevXAxisPage * $xAxisPages->itemCountPerPage,
|
$prevXAxisPage * $xAxisPages->itemCountPerPage,
|
||||||
$xAxisPages->totalItemCount
|
$xAxisPages->totalItemCount,
|
||||||
|
'x'
|
||||||
); ?>"><?= $this->icon('left-open'); ?></a>
|
); ?>"><?= $this->icon('left-open'); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('left-open'); ?>
|
<?= $this->icon('left-open'); ?>
|
||||||
|
@ -69,7 +71,8 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
|
||||||
t('Services'),
|
t('Services'),
|
||||||
$currentXAxisPage * $xAxisPages->itemCountPerPage + 1,
|
$currentXAxisPage * $xAxisPages->itemCountPerPage + 1,
|
||||||
$nextXAxisPage === $xAxisPages->last ? $xAxisPages->totalItemCount : $nextXAxisPage * $xAxisPages->itemCountPerPage,
|
$nextXAxisPage === $xAxisPages->last ? $xAxisPages->totalItemCount : $nextXAxisPage * $xAxisPages->itemCountPerPage,
|
||||||
$xAxisPages->totalItemCount
|
$xAxisPages->totalItemCount,
|
||||||
|
'x'
|
||||||
); ?>"><?= $this->icon('right-open'); ?></a>
|
); ?>"><?= $this->icon('right-open'); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('right-open'); ?>
|
<?= $this->icon('right-open'); ?>
|
||||||
|
@ -87,7 +90,8 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
|
||||||
t('Hosts'),
|
t('Hosts'),
|
||||||
$currentYAxisPage * $yAxisPages->itemCountPerPage + 1,
|
$currentYAxisPage * $yAxisPages->itemCountPerPage + 1,
|
||||||
$nextYAxisPage === $yAxisPages->last ? $yAxisPages->totalItemCount : $nextYAxisPage * $yAxisPages->itemCountPerPage,
|
$nextYAxisPage === $yAxisPages->last ? $yAxisPages->totalItemCount : $nextYAxisPage * $yAxisPages->itemCountPerPage,
|
||||||
$yAxisPages->totalItemCount
|
$yAxisPages->totalItemCount,
|
||||||
|
'y'
|
||||||
); ?>"><?= $this->icon('down-open'); ?></a>
|
); ?>"><?= $this->icon('down-open'); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('down-open'); ?>
|
<?= $this->icon('down-open'); ?>
|
||||||
|
|
Loading…
Reference in New Issue