Skip to content

Commit f5f6622

Browse files
committed
Add warning message styles
1 parent 2975e85 commit f5f6622

File tree

1 file changed

+31
-22
lines changed

1 file changed

+31
-22
lines changed

src/main/resources/agent-status-report.template.ftlh

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@
145145
line-height: 1.5;
146146
}
147147

148+
[data-plugin-style-id="kubernetes-plugin"] .warning-message {
149+
background-color: #fdf5e2;
150+
color: #b88c34;
151+
font-weight: 600;
152+
font-size: 15px;
153+
padding: 10px 20px;
154+
border-radius: 3px;
155+
margin: 0 0 1rem 0;
156+
border: 1px solid rgba(10, 10, 10, 0.25);
157+
position: relative;
158+
}
159+
148160
</style>
149161

150162
<div data-plugin-style-id="kubernetes-plugin">
@@ -243,36 +255,33 @@
243255
</thead>
244256
</tr>
245257
<tbody>
246-
<#list events as event>
247-
<tr>
248-
<td>${event.firstTimestamp!}</td>
249-
<td>${event.lastTimestamp!}</td>
250-
<td>${event.count!}</td>
251-
<td>${event.fieldPath!}</td>
252-
<td>${event.type!}</td>
253-
<td>${event.reason!}</td>
254-
<td>${event.message!}</td>
255-
</tr>
256-
</#list>
257-
258+
<#list events as event>
259+
<tr>
260+
<td>${event.firstTimestamp!}</td>
261+
<td>${event.lastTimestamp!}</td>
262+
<td>${event.count!}</td>
263+
<td>${event.fieldPath!}</td>
264+
<td>${event.type!}</td>
265+
<td>${event.reason!}</td>
266+
<td>${event.message!}</td>
267+
</tr>
268+
</#list>
258269
</tbody>
259270
</table>
260271
<#else>
261-
<tr>
262-
<td colspan="5" class="message">No events available for the current pod.</td>
263-
</tr>
272+
<div class="warning-message">No events available for the current pod.</td>
264273
</#if>
265274
</div>
266-
<div class="tab-content pod-logs" ng-show="currenttab == 'pod-logs'">
267-
${ logs?html?replace("\n", "<br>") !}
268-
</div>
269-
<div class="tab-content pod-configuration" ng-show="currenttab == 'pod-configuration'">
270-
${ configuration?html?replace("\n", "<br>") !}
275+
<div class="tab-content pod-logs" ng-show="currenttab == 'pod-logs'">
276+
${ logs?html?replace("\n", "<br>") !}
277+
</div>
278+
<div class="tab-content pod-configuration" ng-show="currenttab == 'pod-configuration'">
279+
${ configuration?html?replace("\n", "<br>") !}
280+
</div>
271281
</div>
272282
</div>
273283
</div>
274-
</div>
275284

276-
</div>
285+
</div>
277286

278287

0 commit comments

Comments
 (0)