File: index.html

package info (click to toggle)
cockpit 188-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 119,768 kB
  • sloc: ansic: 66,833; xml: 5,776; python: 3,122; sh: 2,322; makefile: 1,289; sed: 7
file content (507 lines) | stat: -rw-r--r-- 23,910 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
<!DOCTYPE html>
<html>
<head>
    <title translatable="yes">System</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../base1/patternfly.css" rel="stylesheet">
    <link href="../shell/index.css" rel="stylesheet">
    <link href="system.css" rel="stylesheet">
    <script src="../base1/jquery.js"></script>
    <script src="../base1/cockpit.js"></script>
    <script src="../manifests.js"></script>
    <script src="../*/po.js"></script>
</head>
<body hidden>

    <script id="ssh-host-keys-tmpl" type="x-template/mustache">
        <div class="list-group dialog-list-ct">
            {{#keys}}
                <div class="list-group-item">
                    <p>{{ title }}</p>
                    {{#fps}}
                    <small>{{.}}</small>
                    {{/fps}}
                </div>
            {{/keys}}
            {{^keys}}
                <div class="list-group-item">
                    <p translatable="yes">No host keys found.</p>
                </div>
            {{/keys}}
        </div>
    </script>

    <script id="ntp-status-icon-tmpl" type="x-template/mustache">
      {{#Synched}}
      <span class="fa fa-lg fa-info-circle"></span>
      {{/Synched}}
      {{^Synched}}
      {{#Server}}
      <span class="spinner spinner-xs spinner-inline"></span>
      {{/Server}}
      {{^Server}}
      <span class="fa fa-lg fa-exclamation-circle fa-red"></span>
      {{/Server}}
      {{/Synched}}
    </script>

    <script id="ntp-status-tmpl" type="x-template/mustache">
      {{#Synched}}
      {{#Server}}
      <div translatable="yes">Synchronized with {{Server}}</div>
      {{/Server}}
      {{^Server}}
      <div translatable="yes">Synchronized</div>
      {{/Server}}
      {{/Synched}}
      {{^Synched}}
      {{#Server}}
      <div translatable="yes">Trying to synchronize with {{Server}}</div>
      {{/Server}}
      {{^Server}}
      <div translatable="yes">Not synchronized</div>
      {{#service}}
      <a data-goto-service="{{.}}" class="small-messages" translate>Log messages</a>
      {{/service}}
      {{/Server}}
      {{/Synched}}
      {{#SubStatus}}
      <div class="small-messages">{{SubStatus}}</div>
      {{/SubStatus}}
    </script>

    <div id="server" class="container-fluid page-ct server-overview">
        <div id="motd-box" class="motd-box" hidden>
          <div class="alert alert-info">
            <button type="button" class="close" aria-hidden="true">
              <span class="pficon pficon-close"></span>
            </button>
            <span class="pficon pficon-info"></span>
            <pre id="motd"></pre>
          </div>
        </div>

        <div class="info-table-ct-container">
            <form class="ct-form-layout">
                <label class="control-label" for="system_information_hardware_text" translatable="yes">Hardware</label>
                <span> <!-- wrap the <a> so that it doesn't stretch to the whole page width; otherwise tooltip looks bad -->
                    <a id="system_information_hardware_text"></a>
                </span>

                <label class="control-label" for="system_information_asset_tag_text" translatable="yes">Asset Tag</label>
                <span id="system_information_asset_tag_text"></span>

                <label class="control-label" for="system_machine_id" translatable="yes">Machine ID</label>
                <span id="system_machine_id"></span>

                <label class="control-label" for="system_information_os_text" translatable="yes">Operating System</label>
                <span id="system_information_os_text"></span>

                <div role="group" class="system-information-updates">
                    <span id="system_information_updates_icon" hidden></span>
                    <span id="system_information_updates_text"></span>
                </div>

                <label class="control-label" for="system-ssh-keys-link" translatable="yes">Secure Shell Keys</label>
                <a id="system-ssh-keys-link" translatable="yes" data-toggle="modal"
                   data-target="#system_information_ssh_keys">Show fingerprints</a>

                <label class="control-label hidden" for="system-ostree-version-link" translatable="yes">Version</label>
                <a id="system-ostree-version-link" class="hidden"></a>

                <label class="control-label" for="system_information_hostname_button" translatable="yes">Host Name</label>
                <span id="hostname-tooltip">
                    <a class="hostname-privileged" id="system_information_hostname_button"></a>
                </span>

                <label class="control-label" for="system-info-domain" translatable="yes" hidden>Domain</label>
                <span id="system-info-domain" hidden></span>

                <label class="control-label" for="system_information_systime_button" translatable="yes">System Time</label>
                <div role="group">
                    <span id="systime-tooltip">
                        <a class="systime-privileged" id="system_information_systime_button"></a>
                    </span>
                      <a hidden id="system_information_systime_ntp_status"
                         tabindex="0" role="button" data-toggle="tooltip"
                         data-placement="bottom" data-html="true" >
                      </a>
                </div>

                <label class="control-label" translatable="yes">Power Options</label>
                <div id="shutdown-group" class="btn-group">
                    <button class="btn btn-default btn-danger shutdown-privileged" data-action="restart"
                        data-container="body" translatable="yes">Restart</button>
                    <button data-toggle="dropdown" class="btn
                        btn-default dropdown-toggle
                        shutdown-privileged"
                        aria-labelledby="system_information_power_options_label">
                        <span class="caret"></span>
                    </button>
                    <ul role="menu" class="dropdown-menu">
                        <li class="presentation">
                            <a role="menuitem" data-action="restart" translatable="yes">Restart</a>
                        </li>
                        <li class="presentation">
                            <a role="menuitem" data-action="shutdown" translatable="yes">Shut Down</a>
                        </li>
                    </ul>
                </div>

                <label class="control-label" translatable="yes">Performance Profile</label>
                <span id="system-info-performance" hidden></span>

                <label class="control-label" for="server-pmlogger-switch" translatable="yes" hidden>Store Metrics</label>
                <div class="btn-group btn-onoff-ct" id="server-pmlogger-switch" data-toggle="buttons" hidden>
                    <label class="btn">
                        <input type="radio" name="pmlogger-switch" autocomplete="off">
                        <span translatable="yes">On</span>
                    </label>
                    <label class="btn active">
                        <input type="radio" name="pmlogger-switch" autocomplete="off" checked>
                        <span translatable="yes">Off</span>
                    </label>
                </div>

                <a id="system-information-enable-pcp-link" hidden>
                    <span class="pficon pficon-info"></span>
                    <span translate>Enable stored metrics…</span>
                </a>
            </form>
        </div>

        <div id="server-graph-columns" class="server-graphs" role="presentation">
            <div id="server-graph-toolbar" class="zoom-controls standard-zoom-controls">
                <div class="dropdown">
                    <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <span></span>
                        <div class="caret"></div>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        <li role="presentation"><a role="menuitem"
                            data-action="goto-now" translate>Go to now</a></li>
                        <li role="presentation" class="divider"></li>
                        <li role="presentation"><a role="menuitem"
                            data-range="300" translate>5 minutes</a></li>
                        <li role="presentation"><a role="menuitem"
                            data-range="3600" translate>1 hour</a></li>
                        <li role="presentation"><a role="menuitem"
                            data-range="21600" translate>6 hours</a></li>
                        <li role="presentation"><a role="menuitem"
                            data-range="86400" translate>1 day</a></li>
                        <li role="presentation"><a role="menuitem"
                            data-range="604800" translate>1 week</a></li>
                    </ul>
                </div>
                <button class="btn btn-default" data-action="zoom-out">
                    <span class="glyphicon glyphicon-zoom-out"></span>
                </button>
                <div class="btn-group">
                    <button class="btn btn-default fa fa-angle-left" data-action="scroll-left"></button>
                    <button class="btn btn-default fa fa-angle-right" data-action="scroll-right"></button>
                </div>
            </div>
            <div>
              <span class="plot-unit" id="server_cpu_unit">%</span><a id="link-cpu"></a>
            </div>
            <div id="server_cpu_graph" class="server-graph zoomable-plot"></div>
            <br/>
            <div>
              <span class="plot-unit" id="server_memory_unit"></span>
              <a id="link-memory" translate>Memory</a>
              <a id="link-memory-and-swap" hidden translate>Memory & Swap</a>
            </div>
            <div id="server_memory_graph" class="server-graph zoomable-plot"></div>
            <br/>
            <div>
              <span class="plot-unit" id="server_disk_io_unit"></span><span id="link-disk"></span>
            </div>
            <div id="server_disk_io_graph" class="server-graph zoomable-plot"></div>
            <br/>
            <div>
              <span class="plot-unit" id="server_network_traffic_unit"></span><span id="link-network"></span>
            </div>
            <div id="server_network_traffic_graph" class="server-graph zoomable-plot"></div>
        </div>
    </div>

    <div class="server-graph-container" id="cpu_status" hidden>
        <div class="server-graph-title" id="cpu_status_title">&nbsp;</div>
        <ul class="server-graph-legend">
            <li class="cpu-nice">
                <i class="fa fa-square"></i>
                <span translatable="yes">Nice</span>
            </li>
            <li class="cpu-user">
                <i class="fa fa-square"></i>
                <span translatable="yes">User</span>
            </li>
            <li class="cpu-kernel">
                <i class="fa fa-square"></i>
                <span translatable="yes">Kernel</span>
            </li>
            <li class="cpu-io-wait">
                <i class="fa fa-square"></i>
                <span translatable="yes">I/O Wait</span>
            </li>
        </ul>
        <div class="server-graph-graph" id="cpu_status_graph"></div>
    </div>

    <div class="server-graph-container" id="memory_status" hidden>
        <ul class="server-graph-legend">
            <li class="memory-swap">
                <i class="fa fa-square"></i>
                <span translatable="yes">Swap Used</span>
            </li>
            <li class="memory-cached">
                <i class="fa fa-square"></i>
                <span translatable="yes">Cached</span>
            </li>
            <li class="memory-used">
                <i class="fa fa-square"></i>
                <span translatable="yes">Used</span>
            </li>
        </ul>
        <div class="server-graph-graph" id="memory_status_graph"></div>
    </div>

    <div class="modal" id="system_information_ssh_keys" tabindex="-1"
        role="dialog" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" translatable="yes">Machine SSH Key Fingerprints</h4>
                </div>
                <div class="modal-body">
                    <div class="spinner spinner-lg"></div>
                    <div class="alert alert-danger" hidden>
                      <span class="pficon pficon-error-circle-o"></span>
                      <strong></strong>
                    </div>
                    <div class="content" hidden></div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" data-dismiss="modal" translate>Close</button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal" id="system_information_change_hostname" tabindex="-1"
        role="dialog" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" translate>Change Host Name</h4>
                </div>
                <div class="modal-body">
                    <table class="form-table-ct">
                        <tr>
                            <td>
                                <label class="control-label" for="sich-pretty-hostname"
                                    translatable="yes">Pretty Host Name</label>
                            </td>
                            <td>
                                <input id="sich-pretty-hostname" class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="sich-hostname"
                                    translatable="yes">Real Host Name</label>
                            </td>
                            <td>
                                <div id=sich-hostname-error>
                                    <input id="sich-hostname" class="form-control">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="has-error">
                                    <span id="sich-note-1" class="help-block"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <div class="has-error">
                                    <span id="sich-note-2" class="help-block"></span>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" data-dismiss="modal" translate>Cancel</button>
                    <button class="btn btn-primary" id="sich-apply-button" translate>Change</button>
                </div>
            </div>
        </div>
    </div>

    <script id="ntp-servers-tmpl" type="x-template/mustache">
      <div class="systime-inline">
        {{#NTPServers}}
        <form class="form-inline">
          <button data-action="add" data-index="{{index}}" class="btn btn-default fa fa-plus"></button>
          <button data-action="del" data-index="{{index}}" class="btn btn-default pficon-close"></button>
          <div class="form-group">
            <input type="text" class="form-control" value="{{Value}}" placeholder="{{Placeholder}}">
          </div>
        </form>
        {{/NTPServers}}
      </div>
    </script>

    <div class="modal" id="system_information_change_systime" tabindex="-1"
        role="dialog" data-backdrop="static">
        <div class="modal-dialog cockpit-modal-md">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" translate>Change System Time</h4>
                </div>
                <div class="modal-body">
                    <table class="form-table-ct">
                        <tr>
                            <td>
                                <label class="control-label" translatable="yes">Time Zone</label>
                            </td>
                            <td>
                                <select class="form-control" id="systime-timezones">
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="has-error">
                                <span id="systime-timezone-error" class="help-block" translatable="yes">Invalid time zone</span>
                            </td>
                        </tr>
                        <tr>
                            <td><label class="control-label" for="change_systime"
                                       translatable="yes">Set Time</label></td>
                            <td>
                                <div class="btn-group bootstrap-select dropdown form-control" id="change_systime">
                                    <button class="btn btn-default dropdown-toggle" type="button"
                                        data-toggle="dropdown">
                                        <span class="pull-left" translatable="yes">Manually</span>
                                        <div class="caret"></div>
                                    </button>
                                    <ul class="dropdown-menu">
                                        <li value="manual_time"><a translatable="yes">Manually</a></li>
                                        <li value="ntp_time"><a translatable="yes">Automatically using NTP</a></li>
                                        <li value="ntp_time_custom"><a translatable="yes">Automatically using specific NTP servers</a></li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        <tr id="systime-manual-row">
                            <td></td>
                            <td>
                                <input type='text' class="form-control" id="systime-date-input"/>
                                <input type='text' class="form-control" id="systime-time-hours"/>
                                :
                                <input type='text' class="form-control" id="systime-time-minutes"/>
                            </td>
                        </tr>
                        <tr id="systime-manual-error-row">
                            <td>
                            </td>
                            <td class="has-error">
                                <span id="systime-parse-error" class="help-block"></span>
                            </td>
                        </tr>
                        <tr id="systime-ntp-servers-row">
                            <td></td>
                            <td id="systime-ntp-servers">
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" data-dismiss="modal" translate>Cancel</button>
                    <button class="btn btn-primary" id="systime-apply-button" translate>Change</button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal" id="shutdown-dialog" tabindex="-1" role="dialog" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title"></h4>
                </div>
                <div class="modal-body">
                    <textarea class="form-control">
                    </textarea>
                    <table>
                        <tr>
                            <td>
                                <label translatable="yes">Delay</label>
                            </td>
                            <td>
                                <div class="btn-group bootstrap-select dropdown form-control">
                                    <button class="btn btn-default dropdown-toggle" type="button"
                                        data-toggle="dropdown">
                                        <span class="pull-left" translatable="yes">1 Minute</span>
                                        <div class="caret"></div>
                                    </button>
                                    <ul class="dropdown-menu">
                                        <li value="1"><a translatable="yes">1 Minute</a></li>
                                        <li value="5"><a translatable="yes">5 Minutes</a></li>
                                        <li value="20"><a translatable="yes">20 Minutes</a></li>
                                        <li value="40"><a translatable="yes">40 Minutes</a></li>
                                        <li value="60"><a translatable="yes">60 Minutes</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li value="0"><a translatable="yes">No Delay</a></li>
                                        <li value="x"><a translatable="yes">Specific Time</a></li>
                                    </ul>
                                </div>
                            </td>
                            <td>
                                <div>
                                    <input class="form-control shutdown-date" type="text">
                                    <input class="form-control shutdown-hours" type="text">
                                    :
                                    <input class="form-control shutdown-minutes" type="text">
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" translatable="yes" data-dismiss="modal">Cancel</button>
                    <button class="btn btn-danger"></button>
                </div>
            </div>
        </div>
    </div>

    <div class="modal" id="confirmation-dialog" tabindex="-1" role="dialog" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" id="confirmation-dialog-title"></h4>
                </div>
                <div class="modal-body" id="confirmation-dialog-body">
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" translatable="yes" id="confirmation-dialog-cancel">Cancel</button>
                    <button class="btn btn-danger" id="confirmation-dialog-confirm">
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script src="system.js"></script>
    <script src="../domain/domain.js"></script>
    <script src="../performance/performance.js"></script>
</body>
</html>