From a0901c4b7f2db488cb4fb3be2dd921a0308f4659 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:36:40 +0200 Subject: Adding upstream version 1.0.2. Signed-off-by: Daniel Baumann --- .../views/scripts/services/grid-flipped.phtml | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 application/views/scripts/services/grid-flipped.phtml (limited to 'application/views/scripts/services/grid-flipped.phtml') diff --git a/application/views/scripts/services/grid-flipped.phtml b/application/views/scripts/services/grid-flipped.phtml new file mode 100644 index 0000000..f186fda --- /dev/null +++ b/application/views/scripts/services/grid-flipped.phtml @@ -0,0 +1,148 @@ +compact): ?> + controls ?> + +
+ +
+
translate('No services found matching the filter.') ?>
+
+
+ $_) { + $serviceFilter->orFilter(Filter::where('service.name', $serviceDescription)); +} +?> + + + + + $hostAlias): ?> + + + + + + + + $serviceDisplayName): ?> + + + + + + horizontalPaginator->getLimit(); + $horizontalTotalPages = ceil($this->horizontalPaginator->count() / $horizontalItemsPerPage); + + + $verticalItemsPerPage = $this->verticalPaginator->getLimit(); + $verticalTotalPages = ceil($this->verticalPaginator->count() / $verticalItemsPerPage); + + if (! $this->compact && $horizontalTotalPages > 1): ?> + + + + + compact && $verticalTotalPages > 1): ?> + + + + + +
partial( + 'joystickPagination-icingadb.phtml', + 'default', + array( + 'flippable' => true, + 'baseUrl' => $baseUrl, + 'xAxisPaginator' => $horizontalPaginator, + 'yAxisPaginator' => $verticalPaginator + ) + ) ?>
qlink( + $this->ellipsis($hostAlias, 24), + Url::fromPath('icingadb/services')->addFilter( + Filter::matchAll($serviceFilter, Filter::where('host.name', $hostName)) + ), + null, + array('title' => sprintf($this->translate('List all reported services on host %s'), $hostAlias)), + false + ) ?>
$_) { + $hostFilter->orFilter(Filter::where('host.name', $hostName)); + } + echo $this->qlink( + $serviceDisplayName, + Url::fromPath('icingadb/services')->addFilter( + Filter::matchAll($hostFilter, Filter::where('service.name', $serviceDescription)) + ), + null, + array('title' => sprintf( + $this->translate('List all services with the name "%s" on all reported hosts'), + $serviceDisplayName + )) + ); + ?> + + + protectId($service->host_name . '_' . $service->name . '_desc') ?> + + escape($service->state->output) ?> + + qlink( + '', + 'icingadb/services', + array( + 'host.name' => $hostName, + 'name' => $serviceDescription + ), + array( + 'aria-describedby' => $ariaDescribedById, + 'aria-label' => sprintf( + $this->translate('Show detailed information for service %s on host %s'), + $service->display_name, + $service->host_display_name + ), + 'class' => 'service-grid-link state-' . $service->state->getStateText() . ($service->state->is_handled ? ' handled' : ''), + 'title' => $service->state->output + ) + ) ?> + + qlink( + $this->translate('Load more'), + $baseUrl, + array( + 'limit' => ($horizontalItemsPerPage + 20) + . ',' + . $verticalItemsPerPage + ), + array( + 'class' => 'action-link', + 'data-base-target' => '_self' + ) + ) ?> + +
+ qlink( + $this->translate('Load more'), + $baseUrl, + array( + 'limit' => $horizontalItemsPerPage + . ',' + . ($verticalItemsPerPage + 20) + ), + array( + 'class' => 'action-link', + 'data-base-target' => '_self' + ) + ) ?> +
+ -- cgit v1.2.3