2015-05-04 14:30:25 +02:00
|
|
|
<?php
|
2015-08-27 23:17:11 +02:00
|
|
|
switch ($comment->type) {
|
2015-05-04 14:30:25 +02:00
|
|
|
case 'flapping':
|
|
|
|
$icon = 'flapping';
|
|
|
|
$title = $this->translate('Flapping');
|
2015-08-27 23:17:11 +02:00
|
|
|
$tooltip = $this->translate('Comment was caused by a flapping host or service');
|
2015-05-04 14:30:25 +02:00
|
|
|
break;
|
|
|
|
case 'comment':
|
|
|
|
$icon = 'user';
|
|
|
|
$title = $this->translate('User Comment');
|
2015-08-27 23:17:11 +02:00
|
|
|
$tooltip = $this->translate('Comment was created by an user');
|
2015-05-04 14:30:25 +02:00
|
|
|
break;
|
|
|
|
case 'downtime':
|
|
|
|
$icon = 'plug';
|
|
|
|
$title = $this->translate('Downtime');
|
2015-08-27 23:17:11 +02:00
|
|
|
$tooltip = $this->translate('Comment was caused by a downtime');
|
2015-05-04 14:30:25 +02:00
|
|
|
break;
|
|
|
|
case 'ack':
|
|
|
|
$icon = 'ok';
|
|
|
|
$title = $this->translate('Acknowledgement');
|
2015-08-27 23:17:11 +02:00
|
|
|
$tooltip = $this->translate('Comment was caused by an acknowledgement');
|
2015-05-04 14:30:25 +02:00
|
|
|
break;
|
|
|
|
}
|
2015-10-27 14:10:31 +01:00
|
|
|
echo $this->icon($icon, $tooltip, array('class' => 'large-icon'));
|