|
1 | 1 | <style>
|
2 | 2 | [data-plugin-style-id="kubernetes-plugin"] .kubernetes-elastic-agent {
|
3 |
| - padding: 20px; |
| 3 | + padding: 50px 20px 0 20px; |
4 | 4 | }
|
5 | 5 |
|
6 | 6 | [data-plugin-style-id="kubernetes-plugin"] .tabs {
|
|
14 | 14 |
|
15 | 15 | [data-plugin-style-id="kubernetes-plugin"] .tabs .tab .content {
|
16 | 16 | position: absolute;
|
17 |
| - background-color: white; |
| 17 | + display: none; |
18 | 18 | left: 0px;
|
19 | 19 | width: 100%;
|
20 |
| - height: 750px; |
| 20 | + height: calc(100vh - 225px); |
21 | 21 | border: 1px #000 solid;
|
22 |
| - overflow-x: scroll; |
| 22 | + border-radius: 5px; |
| 23 | + overflow-x: hidden; |
23 | 24 | }
|
24 | 25 |
|
25 | 26 | [data-plugin-style-id="kubernetes-plugin"] .checkboxtab {
|
26 | 27 | display: none;
|
27 | 28 | }
|
28 | 29 |
|
29 | 30 | [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; |
31 | 38 | }
|
32 | 39 |
|
33 | 40 | [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; |
36 | 44 | }
|
37 | 45 |
|
38 | 46 | [data-plugin-style-id="kubernetes-plugin"] .checkboxtab:checked ~ .content {
|
39 | 47 | z-index: 1;
|
| 48 | + display: block !important; |
40 | 49 | }
|
41 | 50 |
|
42 | 51 | [data-plugin-style-id="kubernetes-plugin"] .agent-name {
|
43 | 52 | padding: 10px;
|
44 | 53 | }
|
| 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 | + |
45 | 77 | </style>
|
46 | 78 |
|
47 | 79 | <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"> |
51 | 92 | <div class="tabs">
|
52 | 93 | <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"> |
54 | 95 | <label for="pod-details">Pod Details</label>
|
55 | 96 | <dl class="content">
|
56 | 97 | <dt>Pod Name:</dt>
|
|
131 | 172 | <input name="agent-information" type="radio" id="pod-events" class="checkboxtab pod-events">
|
132 | 173 | <label for="pod-events">Events</label>
|
133 | 174 | <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> |
148 | 189 | <#list events as event>
|
149 | 190 | <tr>
|
150 | 191 | <td>${event.firstTimestamp!}</td>
|
|
156 | 197 | <td>${event.message!}</td>
|
157 | 198 | </tr>
|
158 | 199 | </#list>
|
159 |
| - <#else> |
| 200 | + |
| 201 | + </tbody> |
| 202 | + </table> |
| 203 | + <#else> |
160 | 204 | <tr>
|
161 | 205 | <td colspan="5" class="message">No events available for the current pod.</td>
|
162 | 206 | </tr>
|
163 |
| - </#if> |
164 |
| - </tbody> |
165 |
| - </table> |
| 207 | + </#if> |
166 | 208 | </dl>
|
167 | 209 | </div>
|
168 | 210 |
|
169 | 211 | <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> |
171 | 213 | <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> |
173 | 215 | </div>
|
174 | 216 |
|
175 | 217 | <div class="tab">
|
176 | 218 | <input name="agent-information" type="radio" id="pod-configuration" class="checkboxtab">
|
177 | 219 | <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> |
179 | 221 | </div>
|
180 | 222 | </div>
|
181 | 223 | </div>
|
|
0 commit comments