= $this->translate('Comments') ?> |
getType() === $object::TYPE_HOST) {
$addCommentLink = $this->href(
'monitoring/host/add-comment',
array('host' => $object->getHost())
);
} else {
$addCommentLink = $this->href(
'monitoring/service/add-comment',
array('host' => $object->getHost(), 'service' => $object->getService())
);
}
?>
= $this->icon('comment_petrol.png') ?> = $this->translate('Add comment') ?>
|
comments as $comment) {
// Ticket hook sample
$text = $this->tickets ? preg_replace_callback(
$this->tickets->getPattern(),
array($this->tickets, 'createLink'),
$this->escape($comment->comment)
) : $this->escape($comment->comment);
$form = clone $delCommentForm;
$form->populate(array('comment_id' => $comment->id));
?>
= $this->escape($comment->author) ?> (= $this->timeSince($comment->timestamp) ?>) |
= $form ?> (= ucfirst($comment->type) ?>):
|
= str_replace(array('\r\n', '\n'), ' ', $text) ?>
|
|