From f42476213ea52ff4f12dacc2f3f1cf0c99c02c04 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Mon, 7 Sep 2015 18:14:16 +0200 Subject: [PATCH] Provide limit control in service grid refs #9030 --- .../views/scripts/list/servicegrid.phtml | 37 +++++++++++++++++++ .../monitoring/public/css/service-grid.less | 7 ++++ 2 files changed, 44 insertions(+) diff --git a/modules/monitoring/application/views/scripts/list/servicegrid.phtml b/modules/monitoring/application/views/scripts/list/servicegrid.phtml index e458f230c..bc54508c6 100644 --- a/modules/monitoring/application/views/scripts/list/servicegrid.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegrid.phtml @@ -1,5 +1,6 @@ compact): ?>
@@ -45,6 +46,8 @@ $hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . ' + + $hostDisplayName): ?> + compact && $this->horizontalPaginator->getPages()->pageCount > 1): ?> + + qlink( + $this->translate('more …'), + Url::fromRequest(), + array( + 'limit' => ( + $this->horizontalPaginator->getItemCountPerPage() + 20) . ',' + . $this->verticalPaginator->getItemCountPerPage() + ), + array( + 'data-base-target' => '_self', + ) + ) ?> + + + + compact && $this->verticalPaginator->getPages()->pageCount > 1): ;?> + + + qlink( + $this->translate('more …'), + Url::fromRequest(), + array( + 'limit' => $this->horizontalPaginator->getItemCountPerPage() . ',' . + ($this->verticalPaginator->getItemCountPerPage() + 20) + ), + array( + 'data-base-target' => '_self' + ) + ) ?> + + +
diff --git a/modules/monitoring/public/css/service-grid.less b/modules/monitoring/public/css/service-grid.less index d89e3d5b4..41a3c6eea 100644 --- a/modules/monitoring/public/css/service-grid.less +++ b/modules/monitoring/public/css/service-grid.less @@ -35,4 +35,11 @@ table.service-grid-table { width: 1.5em; } } + + td.service-grid-table-more { + text-align: center; + a { + display: inline; + } + } }