monitoring: Fix coding style in the comment-detail view script

This commit is contained in:
Eric Lippmann 2015-08-27 23:17:34 +02:00
parent 9ffe151628
commit 2f47791a70

View File

@ -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) ?>