mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-06-07 15:52:09 -04:00
parent
d573152028
commit
a725de8719
2 changed files with 38 additions and 34 deletions
|
|
@ -24,20 +24,22 @@ if ($filterEditor->getFilter()->isEmpty()) {
|
|||
echo '<p>' . $this->escape($this->translate('Please specify a filter')) . '</p>';
|
||||
} elseif ($hosts->hasResult()) {
|
||||
foreach ($hosts->peekAhead($compact) as $host) {
|
||||
echo '<h2>'
|
||||
. $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']
|
||||
)
|
||||
. '</h2>';
|
||||
if (! $compact) {
|
||||
echo '<h2>'
|
||||
. $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']
|
||||
)
|
||||
. '</h2>';
|
||||
}
|
||||
echo EmbedGraphs::host($host->host_name);
|
||||
}
|
||||
|
||||
if ($hosts->hasMore()) {
|
||||
if (! $compact && $hosts->hasMore()) {
|
||||
echo '<div class="action-links">'
|
||||
. $this->qlink(
|
||||
mt('monitoring', 'Show More'),
|
||||
|
|
|
|||
|
|
@ -24,32 +24,34 @@ if ($filterEditor->getFilter()->isEmpty()) {
|
|||
echo '<p>' . $this->escape($this->translate('Please specify a filter')) . '</p>';
|
||||
} elseif ($services->hasResult()) {
|
||||
foreach ($services->peekAhead($compact) as $service) {
|
||||
echo '<h2>'
|
||||
. $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']
|
||||
)
|
||||
. '</h2>';
|
||||
if (! $compact) {
|
||||
echo '<h2>'
|
||||
. $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']
|
||||
)
|
||||
. '</h2>';
|
||||
}
|
||||
echo EmbedGraphs::service($service->host_name, $service->service_description);
|
||||
}
|
||||
|
||||
if ($services->hasMore()) {
|
||||
if (! $compact && $services->hasMore()) {
|
||||
echo '<div class="action-links">'
|
||||
. $this->qlink(
|
||||
mt('monitoring', 'Show More'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue