Skip to content

Commit 14c2072

Browse files
committed
Styling improvements
1 parent 0809b89 commit 14c2072

File tree

1 file changed

+74
-32
lines changed

1 file changed

+74
-32
lines changed

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

Lines changed: 74 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<style>
22
[data-plugin-style-id="kubernetes-plugin"] .kubernetes-elastic-agent {
3-
padding: 20px;
3+
padding: 50px 20px 0 20px;
44
}
55

66
[data-plugin-style-id="kubernetes-plugin"] .tabs {
@@ -14,43 +14,84 @@
1414

1515
[data-plugin-style-id="kubernetes-plugin"] .tabs .tab .content {
1616
position: absolute;
17-
background-color: white;
17+
display: none;
1818
left: 0px;
1919
width: 100%;
20-
height: 750px;
20+
height: calc(100vh - 225px);
2121
border: 1px #000 solid;
22-
overflow-x: scroll;
22+
border-radius: 5px;
23+
overflow-x: hidden;
2324
}
2425

2526
[data-plugin-style-id="kubernetes-plugin"] .checkboxtab {
2627
display: none;
2728
}
2829

2930
[data-plugin-style-id="kubernetes-plugin"] .tab label {
30-
margin-right: 10px;
31+
background-color: #d1c4e9;
32+
padding: 7px 15px;
33+
line-height: 19px;
34+
font-size: 13px;
35+
border-radius: 3px 3px 0 0;
36+
font-weight: 600;
37+
color: #333;
3138
}
3239

3340
[data-plugin-style-id="kubernetes-plugin"] .checkboxtab:checked ~ label {
34-
color: #ab70ff;
35-
border: 1px #000 solid;
41+
background-color: #dfdef0;
42+
border: 1px solid;
43+
border-bottom: none;
3644
}
3745

3846
[data-plugin-style-id="kubernetes-plugin"] .checkboxtab:checked ~ .content {
3947
z-index: 1;
48+
display: block !important;
4049
}
4150

4251
[data-plugin-style-id="kubernetes-plugin"] .agent-name {
4352
padding: 10px;
4453
}
54+
55+
[data-plugin-style-id="kubernetes-plugin"] .pod-logs {
56+
background-color: #383838;
57+
font-size: 13px;
58+
font-family: monaco;
59+
color: white;
60+
display: block;
61+
font-weight: 400;
62+
line-height: 20px;
63+
padding-left: 10px;
64+
}
65+
66+
[data-plugin-style-id="kubernetes-plugin"] .pod-configuration {
67+
background-color: white;
68+
font-family: courier;
69+
font-size: 15px;
70+
white-space: pre;
71+
font-weight: 600;
72+
display: block;
73+
line-height: 10px;
74+
color: #484848;
75+
}
76+
4577
</style>
4678

4779
<div data-plugin-style-id="kubernetes-plugin">
48-
<div class="kubernetes-elastic-agent">
49-
<h2 class="agent-name"> ${ elasticAgentId! } </h2>
50-
80+
<div class="row">
81+
<div class="header-panel">
82+
<header class="page-header">
83+
<f.row>
84+
<f.column size={6}>
85+
<h1>${ elasticAgentId! }</h1>
86+
</f.column>
87+
</f.row>
88+
</header>
89+
</div>
90+
</div>
91+
<div class="kubernetes-elastic-agent row">
5192
<div class="tabs">
5293
<div class="tab">
53-
<input name="agent-information" type="radio" id="pod-details" class="checkboxtab pod-details" checked>
94+
<input name="agent-information" type="radio" id="pod-details" class="checkboxtab pod-details">
5495
<label for="pod-details">Pod Details</label>
5596
<dl class="content">
5697
<dt>Pod Name:</dt>
@@ -131,20 +172,20 @@
131172
<input name="agent-information" type="radio" id="pod-events" class="checkboxtab pod-events">
132173
<label for="pod-events">Events</label>
133174
<dl class="content">
134-
<table>
135-
<thead>
136-
<tr>
137-
<th>First Seen</th>
138-
<th>Last Seen</th>
139-
<th>Count</th>
140-
<th>Path</th>
141-
<th>Type</th>
142-
<th>Reason</th>
143-
<th>Message</th>
144-
</thead>
145-
</tr>
146-
<tbody>
147-
<#if events?size != 0>
175+
<#if events?size != 0>
176+
<table>
177+
<thead>
178+
<tr>
179+
<th>First Seen</th>
180+
<th>Last Seen</th>
181+
<th>Count</th>
182+
<th>Path</th>
183+
<th>Type</th>
184+
<th>Reason</th>
185+
<th>Message</th>
186+
</thead>
187+
</tr>
188+
<tbody>
148189
<#list events as event>
149190
<tr>
150191
<td>${event.firstTimestamp!}</td>
@@ -156,26 +197,27 @@
156197
<td>${event.message!}</td>
157198
</tr>
158199
</#list>
159-
<#else>
200+
201+
</tbody>
202+
</table>
203+
<#else>
160204
<tr>
161205
<td colspan="5" class="message">No events available for the current pod.</td>
162206
</tr>
163-
</#if>
164-
</tbody>
165-
</table>
207+
</#if>
166208
</dl>
167209
</div>
168210

169211
<div class="tab">
170-
<input name="agent-information" type="radio" id="pod-logs" class="checkboxtab">
212+
<input name="agent-information" type="radio" id="pod-logs" class="checkboxtab" checked>
171213
<label for="pod-logs">Logs</label>
172-
<dl class="content"> ${ logs?html?replace("\n", "<br>") !} </dl>
214+
<dl class="content pod-logs"> ${ logs?html?replace("\n", "<br>") !} </dl>
173215
</div>
174216

175217
<div class="tab">
176218
<input name="agent-information" type="radio" id="pod-configuration" class="checkboxtab">
177219
<label for="pod-configuration">Configuration</label>
178-
<dl class="content"> ${ configuration?html?replace("\n", "<br>") !} </dl>
220+
<dl class="content pod-configuration"> ${ configuration?html?replace("\n", "<br>") !} </dl>
179221
</div>
180222
</div>
181223
</div>

0 commit comments

Comments
 (0)