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