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