mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
monitoring: Fix coding style in the comment-detail view script
This commit is contained in:
parent
9ffe151628
commit
2f47791a70
@ -1,17 +1,17 @@
|
|||||||
<?php if ($comment->objecttype === 'service'): ?>
|
<?php if ($comment->objecttype === 'service'): ?>
|
||||||
<?= $this->icon('service', $this->translate('Service')); ?>
|
<?= $this->icon('service', $this->translate('Service')) ?>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
'%s: %s',
|
'%s: %s',
|
||||||
$comment->host_display_name,
|
$comment->host_display_name,
|
||||||
$comment->service_display_name
|
$comment->service_display_name
|
||||||
) ?>
|
) ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('host', $this->translate('Host')); ?>
|
<?= $this->icon('host', $this->translate('Host')) ?>
|
||||||
<?= $this->link()->host($comment->host_name, $comment->host_display_name); ?>
|
<?= $this->link()->host($comment->host_name, $comment->host_display_name) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
|
<?= $this->icon('comment', $this->translate('Comment')) ?>
|
||||||
? '[' . $this->escape($comment->author) . '] '
|
<?php if (isset($comment->author)): ?>
|
||||||
: '';
|
[<?= $this->escape($comment->author) ?>]
|
||||||
?><?= $this->escape($comment->comment); ?>
|
<?php endif ?>
|
||||||
|
<?= $this->escape($comment->comment) ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user