Skip to content

Commit 6e2a092

Browse files
Redesign Ack-badge
Use the `check-circle` icon in the ack-badge, matching the one on the Acknowledge button
1 parent b1a6f3a commit 6e2a092

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

library/Icingadb/View/CommentRenderer.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,16 @@ public function assembleTitle($item, HtmlDocument $title, string $layout): void
101101
];
102102

103103
if ($isAck) {
104-
$label = [Text::create('ack')];
104+
$label = [new Icon('check-circle')];
105105

106106
if ($item->is_persistent) {
107-
array_unshift($label, new Icon(Icons::IS_PERSISTENT));
107+
$label[] = new Icon(Icons::IS_PERSISTENT);
108108
}
109109

110+
$label[] = Text::create('ack');
111+
110112
$headerParts[] = Text::create(' ');
111-
$headerParts[] = new HtmlElement('span', Attributes::create(['class' => 'ack-badge badge']), ...$label);
113+
$headerParts[] = new HtmlElement('span', Attributes::create(['class' => 'ack-badge']), ...$label);
112114
}
113115

114116
if ($expires !== null) {

public/css/common.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ div.show-more {
5959
}
6060
}
6161

62+
.ack-badge:not(.badge) {
63+
color: @color-ok;
64+
margin-top: 0;
65+
}
66+
6267
.controls {
6368
.box-shadow(0, 0, 0, 1px, @gray-lighter);
6469
flex-shrink: 0;

0 commit comments

Comments
 (0)