icingaweb2/modules/monitoring/application/views/scripts/show/components/comments.phtml
Jannis Moßhammer 015a914aab Fix template code style, use Bootstrap 3, remove icons
- Icons have now the {{XY_ICON}} format
- custom classes are removed
- A few typos are fixed
- Capitalization

refs #4550
refs #4621
refs #4584
2013-08-23 10:28:48 +02:00

33 lines
No EOL
812 B
PHTML

<?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; ?>