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( - $host->host_name === $host->host_display_name - ? $host->host_display_name - : $host->host_display_name . ' (' . $this->escape($host->host_name) . ')', - Url::fromPath('monitoring/host/show', ['host' => $host->host_name]), - null, - ['data-base-target' => '_next'] - ) - . '

'; + if (! $compact) { + echo '

' + . $this->qlink( + $host->host_name === $host->host_display_name + ? $host->host_display_name + : $host->host_display_name . ' (' . $this->escape($host->host_name) . ')', + Url::fromPath('monitoring/host/show', ['host' => $host->host_name]), + null, + ['data-base-target' => '_next'] + ) + . '

'; + } echo EmbedGraphs::host($host->host_name); } - if ($hosts->hasMore()) { + if (! $compact && $hosts->hasMore()) { echo '