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'): ?>
|
||||
<?= $this->icon('service', $this->translate('Service')); ?>
|
||||
<?= $this->icon('service', $this->translate('Service')) ?>
|
||||
<?= sprintf(
|
||||
'%s: %s',
|
||||
$comment->host_display_name,
|
||||
$comment->service_display_name
|
||||
) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->icon('host', $this->translate('Host')); ?>
|
||||
<?= $this->link()->host($comment->host_name, $comment->host_display_name); ?>
|
||||
<?= $this->icon('host', $this->translate('Host')) ?>
|
||||
<?= $this->link()->host($comment->host_name, $comment->host_display_name) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<br>
|
||||
<?= $this->icon('comment', $this->translate('Comment')); ?> <?= isset($comment->author)
|
||||
? '[' . $this->escape($comment->author) . '] '
|
||||
: '';
|
||||
?><?= $this->escape($comment->comment); ?>
|
||||
<?= $this->icon('comment', $this->translate('Comment')) ?>
|
||||
<?php if (isset($comment->author)): ?>
|
||||
[<?= $this->escape($comment->author) ?>]
|
||||
<?php endif ?>
|
||||
<?= $this->escape($comment->comment) ?>
|
||||
|
|
Loading…
Reference in New Issue