Skip to content

Commit

Permalink
CSS: Rename remove-comment to remove-action
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Oct 28, 2015
1 parent acb01dc commit a8a87d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Expand Up @@ -41,7 +41,7 @@
<?php if (isset($delCommentForm)) {
$deleteButton = clone $delCommentForm;
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm $deleteButton */
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-comment');
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
$deleteButton->populate(
array(
'comment_id' => $comment->id,
Expand Down
Expand Up @@ -54,7 +54,7 @@
<?php
$deleteButton = clone $delDowntimeForm;
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-comment');
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
$deleteButton->populate(
array(
'downtime_id' => $downtime->id,
Expand Down
Expand Up @@ -39,7 +39,7 @@ $acknowledgement = $object->acknowledgement;
<?php if (isset($removeAckForm)): // Form is unset if the current user lacks the respective permission ?>
<span class="meta-icons">
<?php
$removeAckForm->setAttrib('class', $removeAckForm->getAttrib('class') . ' remove-comment');
$removeAckForm->setAttrib('class', $removeAckForm->getAttrib('class') . ' remove-action');
echo $removeAckForm;
?>
</span>
Expand Down
Expand Up @@ -55,7 +55,7 @@ if (empty($object->comments) && ! $addLink) {
<?php
$deleteButton = clone($delCommentForm);
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm $deleteButton */
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-comment');
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
$deleteButton->populate(
array(
'comment_id' => $comment->id,
Expand Down
Expand Up @@ -85,7 +85,7 @@ if (empty($object->comments) && ! $addLink) {
<?php
$deleteButton = clone($delDowntimeForm);
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-comment');
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
$deleteButton->populate(
array(
'downtime_id' => $downtime->id,
Expand Down
4 changes: 2 additions & 2 deletions public/css/icinga/main.less
Expand Up @@ -86,7 +86,7 @@ a:hover > .icon-cancel {
&:hover {
background-color: @gray-lightest;

> .comment-meta > .meta-icons > .remove-comment {
> .comment-meta > .meta-icons > .remove-action {
display: block;
}
}
Expand All @@ -95,7 +95,7 @@ a:hover > .icon-cancel {
margin-top: 0;
}

> .comment-meta > .meta-icons > .remove-comment {
> .comment-meta > .meta-icons > .remove-action {
display: none;
}
}
Expand Down

0 comments on commit a8a87d2

Please sign in to comment.