
<?php if (! empty($this->comments)): ?>
<?
$list = array();
foreach ($this->comments as $comment) {
    if ($this->ticket_pattern) {
        $text = preg_replace(
            $this->ticket_pattern,
            $this->ticket_link,
            $this->escape($comment->comment_data)
        );
    } else {
        $text = $this->escape($comment->comment_data);
    }
    $list[] = sprintf(
        '[%s] %s (%s): %s',
        $this->escape($comment->comment_author),
        $this->format()->timeSince($comment->comment_timestamp),
        $comment->comment_type,
        $text
    );
}
?>
<div class="panel">
  <div class="panel-heading">
    <span>{{COMMENT_ICON}} Comments</span>
  </div>
  <div class="panel-body">
    <blockquote> <?= implode('<br />', $list) ?></blockquote>
  </div>
</div>

<?php endif; ?>