monitoring: Fix indent in the show/components/comments.phtml view script

refs #9611
This commit is contained in:
Eric Lippmann 2015-08-03 15:03:02 +02:00
parent 177fafaa56
commit 0809caa86b
1 changed files with 24 additions and 24 deletions

View File

@ -43,30 +43,30 @@ if (empty($object->comments) && ! $addLink) {
else: ?> else: ?>
<ul class="inline-comments"> <ul class="inline-comments">
<?php foreach ($object->comments as $comment): <?php foreach ($object->comments as $comment):
// Form is unset if the current user lacks the respective permission // Form is unset if the current user lacks the respective permission
if (isset($delCommentForm)) { if (isset($delCommentForm)) {
$deleteButton = clone($delCommentForm); $deleteButton = clone($delCommentForm);
$deleteButton->populate( $deleteButton->populate(
array( array(
'comment_id' => $comment->id, 'comment_id' => $comment->id,
'comment_is_service' => isset($comment->service_description) 'comment_is_service' => isset($comment->service_description)
) )
); );
} else { } else {
$deleteButton = ''; $deleteButton = '';
} }
?> ?>
<li class="comment-item"> <li class="comment-item">
<h3> <h3>
<span class="author"><?= $this->escape($comment->author) ?></span> <span class="author"><?= $this->escape($comment->author) ?></span>
<?= $this->timeAgo($comment->timestamp) ?> <?= $this->timeAgo($comment->timestamp) ?>
<?= $deleteButton ?> <?= $deleteButton ?>
</h3> </h3>
<p> <p>
<span class="sr-only">(<?= $this->translate('Comment') ?>): </span> <span class="sr-only">(<?= $this->translate('Comment') ?>): </span>
<?= str_replace(array('\r\n', '\n'), '<br>', $this->createTicketLinks($comment->comment)) ?> <?= str_replace(array('\r\n', '\n'), '<br>', $this->createTicketLinks($comment->comment)) ?>
</p> </p>
</li> </li>
<?php endforeach ?> <?php endforeach ?>
</ul> </ul>
<?php endif ?> <?php endif ?>