monitoring/host: Add tooltip for the unhandled services link to the link

refs #8110
This commit is contained in:
Eric Lippmann 2015-02-02 17:27:59 +01:00
parent 2722463372
commit a8de3c093a
1 changed files with 22 additions and 14 deletions

View File

@ -98,21 +98,29 @@ if ($hosts->count() === 0) {
<?= implode(' ', $icons) ?>
<a href="<?= $hostLink ?>"><?= $this->escape($host->host_display_name) ?></a>
<?php if (isset($host->host_unhandled_services) && $host->host_unhandled_services > 0): ?>
<span title="<?php printf(
$this->translatePlural('%s Service Problem on Host "%s"', '%s Service Problems on Host "%s"', $host->host_unhandled_services),
$host->host_unhandled_services,
$host->host_name
); ?>"> (<?= $this->qlink(
sprintf(
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
$host->host_unhandled_services),
'monitoring/show/services',
array(
'host' => $host->host_name,
'service_problem' => 1,
'service_handled' => 0
<span> (<?= $this->qlink(
sprintf(
$this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
$host->host_unhandled_services
),
'monitoring/show/services',
array(
'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>
<?php endif ?>
<p class="pluginoutput"><?= $this->escape($this->ellipsis($host->host_output, 10000)) ?></p>