Skip to content

Commit

Permalink
monitoring/CSS: Use action-link on acknowledge links
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 24, 2015
1 parent 4142c15 commit 587b565
Showing 1 changed file with 8 additions and 3 deletions.
Expand Up @@ -63,12 +63,16 @@ if ($object->acknowledged): ?>
if ($object->getType() === $object::TYPE_HOST) {
$ackLink = $this->href(
'monitoring/host/acknowledge-problem',
array('host' => $object->getName())
array('host' => $object->getName()),
null,
array('class' => 'action-link')
);
} else {
$ackLink = $this->href(
'monitoring/service/acknowledge-problem',
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
null,
array('class' => 'action-link')
);
}
?>
Expand All @@ -77,8 +81,9 @@ if ($object->acknowledged): ?>
$ackLink,
null,
array(
'icon' => 'ok',
'class' => 'action-link',
'data-base-target' => '_self',
'icon' => 'ok',
'title' => $this->translate(
'Acknowledge this problem, suppress all future notifications for it and tag it as being handled'
)
Expand Down

0 comments on commit 587b565

Please sign in to comment.