mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
monitoring/host: Add tooltip for the unhandled services link to the link
refs #8110
This commit is contained in:
parent
2722463372
commit
a8de3c093a
@ -98,21 +98,29 @@ if ($hosts->count() === 0) {
|
|||||||
<?= implode(' ', $icons) ?>
|
<?= implode(' ', $icons) ?>
|
||||||
<a href="<?= $hostLink ?>"><?= $this->escape($host->host_display_name) ?></a>
|
<a href="<?= $hostLink ?>"><?= $this->escape($host->host_display_name) ?></a>
|
||||||
<?php if (isset($host->host_unhandled_services) && $host->host_unhandled_services > 0): ?>
|
<?php if (isset($host->host_unhandled_services) && $host->host_unhandled_services > 0): ?>
|
||||||
<span title="<?php printf(
|
<span> (<?= $this->qlink(
|
||||||
$this->translatePlural('%s Service Problem on Host "%s"', '%s Service Problems on Host "%s"', $host->host_unhandled_services),
|
sprintf(
|
||||||
$host->host_unhandled_services,
|
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
|
||||||
$host->host_name
|
$host->host_unhandled_services
|
||||||
); ?>"> (<?= $this->qlink(
|
),
|
||||||
sprintf(
|
'monitoring/show/services',
|
||||||
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
|
array(
|
||||||
$host->host_unhandled_services),
|
'host' => $host->host_name,
|
||||||
'monitoring/show/services',
|
'service_problem' => 1,
|
||||||
array(
|
'service_handled' => 0
|
||||||
'host' => $host->host_name,
|
|
||||||
'service_problem' => 1,
|
|
||||||
'service_handled' => 0
|
|
||||||
),
|
),
|
||||||
array('style' => 'font-weight: normal')
|
array(
|
||||||
|
'style' => 'font-weight: normal',
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'List %s service problem on host %s',
|
||||||
|
'List %s service problems on host %s',
|
||||||
|
$host->host_unhandled_services
|
||||||
|
),
|
||||||
|
$host->host_unhandled_services,
|
||||||
|
$host->host_name
|
||||||
|
)
|
||||||
|
)
|
||||||
) ?>)</span>
|
) ?>)</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<p class="pluginoutput"><?= $this->escape($this->ellipsis($host->host_output, 10000)) ?></p>
|
<p class="pluginoutput"><?= $this->escape($this->ellipsis($host->host_output, 10000)) ?></p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user