monitoring/CSS: Use action-link on add comment links

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 17:58:33 +02:00
parent 587b5651eb
commit e782fcb859
1 changed files with 6 additions and 4 deletions

View File

@ -8,8 +8,9 @@ if ($this->hasPermission('monitoring/command/comment/add')) {
'monitoring/host/add-comment',
array('host' => $object->getName()),
array(
'icon' => 'comment',
'class' => 'action-link',
'data-base-target' => '_self',
'icon' => 'comment',
'title' => $this->translate('Add a new comment to this host')
)
);
@ -19,8 +20,9 @@ if ($this->hasPermission('monitoring/command/comment/add')) {
'monitoring/service/add-comment',
array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
array(
'icon' => 'comment',
'class' => 'action-link',
'data-base-target' => '_self',
'icon' => 'comment',
'title' => $this->translate('Add a new comment to this service')
)
);
@ -48,8 +50,8 @@ if (empty($object->comments) && ! $addLink) {
$deleteButton = clone($delCommentForm);
$deleteButton->populate(
array(
'comment_id' => $comment->id,
'comment_is_service' => isset($comment->service_description)
'comment_id' => $comment->id,
'comment_is_service' => isset($comment->service_description)
)
);
} else {