mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
Remove leading and trailing whitespace from host header partial
refs #12208
This commit is contained in:
parent
1993ae2ed2
commit
a9f86c6f22
@ -13,28 +13,28 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td><?php
|
||||||
<?= $this->iconImage()->host($object) ?>
|
echo $this->iconImage()->host($object);
|
||||||
<span class="selectable"><?= $this->escape($object->host_display_name) ?></span>
|
echo '<span class="selectable">' . $this->escape($object->host_display_name) . '</span>';
|
||||||
<?php if ($object->host_display_name !== $object->host_name): ?>
|
if ($object->host_display_name !== $object->host_name) {
|
||||||
<span class="selectable host-meta">(<?= $this->escape($object->host_name) ?>)</span>
|
echo ' <span class="selectable host-meta">(' . $this->escape($object->host_name) . ')</span>';
|
||||||
<?php endif ?>
|
}
|
||||||
<?php if ($object->host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name): ?>
|
if ($object->host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name) {
|
||||||
<div class="selectable host-meta">
|
echo '<div class="selectable host-meta">'
|
||||||
<?= $this->escape($this->translate('Alias', 'host') . ': ' . $object->host_alias) ?>
|
. $this->escape($this->translate('Alias', 'host') . ': ' . $object->host_alias)
|
||||||
</div>
|
. '</div>';
|
||||||
<?php endif ?>
|
}
|
||||||
<?= $this->render('partials/host/statusicons.phtml') ?>
|
echo $this->render('partials/host/statusicons.phtml');
|
||||||
<?php if ($object->host_address6 && $object->host_address6 !== $object->host_name): ?>
|
if ($object->host_address6 && $object->host_address6 !== $object->host_name) {
|
||||||
<div class="selectable host-meta" title="<?= $this->translate('IPv6 address') ?>">
|
echo '<div class="selectable host-meta" title="' . $this->translate('IPv6 address') . '">'
|
||||||
<?= $this->escape($object->host_address6) ?>
|
. $this->escape($object->host_address6)
|
||||||
</div>
|
. '</div>';
|
||||||
<?php endif ?>
|
}
|
||||||
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
if ($object->host_address && $object->host_address !== $object->host_name) {
|
||||||
<div class="selectable host-meta" title="<?= $this->translate('IPv4 address') ?>">
|
echo '<div class="selectable host-meta" title="' . $this->translate('IPv4 address') . '">'
|
||||||
<?= $this->escape($object->host_address) ?>
|
. $this->escape($object->host_address)
|
||||||
</div>
|
. '</div>';
|
||||||
<?php endif ?>
|
}
|
||||||
</td>
|
?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user