Make host and service names bold in their detail headers

This commit is contained in:
Eric Lippmann 2019-07-29 13:31:25 +02:00
parent 9221e7894c
commit 11097fe75b
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ $linkHostName = ! ($url->getPath() === 'monitoring/host/show' && $url->getParam(
echo '<a href="' . Url::fromPath('monitoring/host/show', array('host' => $object->host_name)) . '">'; echo '<a href="' . Url::fromPath('monitoring/host/show', array('host' => $object->host_name)) . '">';
} }
?> ?>
<span class="selectable"><?= $this->escape($object->host_display_name) ?></span> <span class="selectable"><strong><?= $this->escape($object->host_display_name) ?></strong></span>
<?php if ($object->host_display_name !== $object->host_name): ?> <?php if ($object->host_display_name !== $object->host_name): ?>
<span class="selectable host-meta">&#40;<?= $this->escape($object->host_name) ?>&#41;</span> <span class="selectable host-meta">&#40;<?= $this->escape($object->host_name) ?>&#41;</span>
<?php endif ?> <?php endif ?>

View File

@ -22,7 +22,7 @@ $linkServiceName = ! ($url->getPath() === 'monitoring/service/show' && $url->get
<td> <td>
<?= $this->iconImage()->host($object) ?> <?= $this->iconImage()->host($object) ?>
<a href="<?= Url::fromPath('monitoring/host/show', array('host' => $object->host_name)) ?>"> <a href="<?= Url::fromPath('monitoring/host/show', array('host' => $object->host_name)) ?>">
<span class="selectable"><?= $this->escape($object->host_display_name) ?></span> <span class="selectable"><strong><?= $this->escape($object->host_display_name) ?></strong></span>
<?php if ($object->host_display_name !== $object->host_name): ?> <?php if ($object->host_display_name !== $object->host_name): ?>
<span class="selectable host-meta">&#40;<?= $this->escape($object->host_name) ?>&#41;</span> <span class="selectable host-meta">&#40;<?= $this->escape($object->host_name) ?>&#41;</span>
<?php endif ?> <?php endif ?>
@ -57,7 +57,7 @@ $linkServiceName = ! ($url->getPath() === 'monitoring/service/show' && $url->get
)) . '">'; )) . '">';
} }
?> ?>
<span class="selectable"><?= $this->escape($object->service_display_name) ?></span> <span class="selectable"><strong><?= $this->escape($object->service_display_name) ?></strong></span>
<?php if ($object->service_display_name !== $object->service_description): ?> <?php if ($object->service_display_name !== $object->service_description): ?>
<span class="selectable service-meta">&#40;<?= $this->escape($object->service_description) ?>&#41;</span> <span class="selectable service-meta">&#40;<?= $this->escape($object->service_description) ?>&#41;</span>
<?php endif ?> <?php endif ?>