diff --git a/application/views/scripts/list/hosts.phtml b/application/views/scripts/list/hosts.phtml
index e70b7da..a9aed43 100644
--- a/application/views/scripts/list/hosts.phtml
+++ b/application/views/scripts/list/hosts.phtml
@@ -24,20 +24,22 @@ if ($filterEditor->getFilter()->isEmpty()) {
echo '
' . $this->escape($this->translate('Please specify a filter')) . '
';
} elseif ($hosts->hasResult()) {
foreach ($hosts->peekAhead($compact) as $host) {
- echo ''
. $this->qlink(
mt('monitoring', 'Show More'),
diff --git a/application/views/scripts/list/services.phtml b/application/views/scripts/list/services.phtml
index e614a19..787057a 100644
--- a/application/views/scripts/list/services.phtml
+++ b/application/views/scripts/list/services.phtml
@@ -24,32 +24,34 @@ if ($filterEditor->getFilter()->isEmpty()) {
echo '
' . $this->escape($this->translate('Please specify a filter')) . '
';
} elseif ($services->hasResult()) {
foreach ($services->peekAhead($compact) as $service) {
- echo '
'
- . $this->qlink(
- $service->host_name === $service->host_display_name
- ? $service->host_display_name
- : $service->host_display_name . ' (' . $this->escape($service->host_name) . ')',
- Url::fromPath('monitoring/host/show', ['host' => $service->host_name]),
- null,
- ['data-base-target' => '_next']
- )
- . ': '
- . $this->qlink(
- $service->service_description === $service->service_display_name
- ? $service->service_display_name
- : $service->service_display_name . ' (' . $this->escape($service->service_description) . ')',
- Url::fromPath('monitoring/service/show', [
- 'host' => $service->host_name,
- 'service' => $service->service_description
- ]),
- null,
- ['data-base-target' => '_next']
- )
- . '
';
+ if (! $compact) {
+ echo '
'
+ . $this->qlink(
+ $service->host_name === $service->host_display_name
+ ? $service->host_display_name
+ : $service->host_display_name . ' (' . $this->escape($service->host_name) . ')',
+ Url::fromPath('monitoring/host/show', ['host' => $service->host_name]),
+ null,
+ ['data-base-target' => '_next']
+ )
+ . ': '
+ . $this->qlink(
+ $service->service_description === $service->service_display_name
+ ? $service->service_display_name
+ : $service->service_display_name . ' (' . $this->escape($service->service_description) . ')',
+ Url::fromPath('monitoring/service/show', [
+ 'host' => $service->host_name,
+ 'service' => $service->service_description
+ ]),
+ null,
+ ['data-base-target' => '_next']
+ )
+ . '
';
+ }
echo EmbedGraphs::service($service->host_name, $service->service_description);
}
- if ($services->hasMore()) {
+ if (! $compact && $services->hasMore()) {
echo '
'
. $this->qlink(
mt('monitoring', 'Show More'),