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 (180 lines) | stat: -rw-r--r-- 9,238 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
<!DOCTYPE html>
<!--
 * This file is part of Cockpit.
 *
 * Copyright (C) 2015 Red Hat, Inc.
 *
 * Cockpit is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * Cockpit is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
-->
<html>
<head>
<title translatable="yes">Dashboard</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="../../static/branding.css" rel="stylesheet">
    <script src="../base1/jquery.js"></script>
    <script src="../base1/cockpit.js"></script>
    <script src="../*/po.js"></script>
    <script src="../manifests.js"></script>
    <script src="../dashboard/dashboard.js"></script>
</head>
<body hidden>

    <div id="dashboard" class="container-fluid page-ct">
        <div class="row" role="presentation">
            <div class="col-md-12">
                <div id="dashboard-toolbar" class="pull-right 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>
                <ul class="nav nav-tabs">
                    <li data-monitor-id="0"><a><span translatable="yes">CPU</span></a></li>
                    <li data-monitor-id="1"><a><span translatable="yes">Memory</span></a></li>
                    <li data-monitor-id="2"><a><span translatable="yes">Network</span></a></li>
                    <li data-monitor-id="3"><a><span translatable="yes">Disk I/O</span></a></li>
                </ul>
                <br>
                <div class="dashboard-plot zoomable-plot" id="dashboard-plot-0"></div>
                <div class="dashboard-plot zoomable-plot" id="dashboard-plot-1"></div>
                <div class="dashboard-plot zoomable-plot" id="dashboard-plot-2"></div>
                <div class="dashboard-plot zoomable-plot" id="dashboard-plot-3"></div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default" id="dashboard-hosts">
                    <div class="panel-heading">
                        <button class="btn btn-primary servers-privileged fa fa-plus"
                            id="dashboard-add" aria-label="Add Server" title="Add Server"></button>
                        <button class="btn btn-default fa fa-check"
                            id="dashboard-enable-edit" aria-label="Edit Server" title="Edit Server"></button>
                        <span translate>Servers</span>
                    </div>
                    <div class="list-group">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script id="dashboard-hosts-tmpl" type="x-template/mustache">
        {{#machines}}
            {{! state can be 'failed' or 'connected' }}
            <a data-address="{{address}}" class="list-group-item {{state}}"
                data-color="{{ color }}" target="_parent" href="/@{{address}}">
                <button class="btn btn-danger edit-button servers-privileged pficon btn-delete pficon-delete delete-{{address}}"></button>
                <button class="btn btn-default edit-button servers-privileged pficon pficon-edit"></button>
                <img class="host-avatar {{avatar_display}}" role="{{aria_role}}" alt="{{alt_text}}" title="{{alt_text}}" src="{{render_avatar}}">
                <div class="spinner {{connecting_display}}"></div>
                <div class="os">{{os}}</div>
                <span class="host-label">{{label}}
                    <span class="reconnecting {{connecting_display}}"
                        translatable="yes">Lost connection. Trying to reconnect</span></span>
            </a>
        {{/machines}}
    </script>

    <div class="modal" id="dashboard_setup_server_dialog" tabindex="-1" role="dialog"
        data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
            </div>
        </div>
    </div>

    <div class="modal" id="host-edit-dialog" tabindex="-1" role="dialog" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" translate>Edit Server</h4>
                </div>
                <div class="modal-body">
                <div>
                    <input data-role="none" type="file" id="host-edit-file-input" hidden/>
                    <table class="form-table-ct">
                        <tr>
                            <td class="top" translatable="yes">Host Name</td>
                            <td>
                                <input class="form-control" id="host-edit-name"/>
                            </td>
                            <td></td>
                        </tr>
                        <tr id="host-edit-user-row">
                            <td class="top" translatable="yes">User</td>
                            <td>
                                <input class="form-control" id="host-edit-user"/>
                            </td>
                            <td>
                                <a tabindex="0" role="button" data-toggle="popover"
                                    data-trigger="focus" data-placement="bottom" translate="data-content"
                                    data-content="Leave blank to connect to this machine as the currently logged in user. If you enter a different username, that user will always be used when connecting to this machine.">
                                    <span class="fa fa-lg fa-info-circle"></span>
                                </a>
                            </td>
                        </tr>
                        <tr>
                            <td translatable="yes">Color</td>
                            <td id="host-edit-colorpicker">
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="top" translatable="yes">Avatar</td>
                            <td>
                                <div id="host-edit-avatar"></div>
                                <div id="host-edit-fail"></div>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                </div>
                </div>
                <div class="modal-footer">
                    <div class="pull-left"><a id="host-edit-sync-users" translatable="yes">Synchronize users</a></div>
                    <button class="btn btn-default" data-dismiss="modal" translatable="yes">Cancel</button>
                    <button class="btn btn-primary" id="host-edit-apply" translatable="yes">Set</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>