10
10
< link rel ="stylesheet " type ="text/css " href ="./node_modules/animate.css/animate.css " />
11
11
< link rel ="stylesheet " type ="text/css " href ="./node_modules/jquery.terminal/css/jquery.terminal.css " />
12
12
< link rel ="stylesheet " type ="text/css " href ="./css/jquery.dockmodal.css " />
13
-
14
- < style >
15
- body {
16
- /*min-height: 600px;*/
17
- padding-top : 20px ;
18
- }
19
- # debug {
20
- display : block;
21
- }
22
- # server-status li {
23
- height : 32px ;
24
- padding : 7px 14px ;
25
- }
26
- .loading {
27
- background-image : url ("img/loading.gif" );
28
- background-repeat : no-repeat;
29
- background-size : 32px ;
30
- background-position : center;
31
- }
32
-
33
- # modal-add-image .modal-dialog ,
34
- # modal-add-image .modal-content {
35
- height : 80% ;
36
- }
37
-
38
- # modal-add-image .modal-body {
39
- /* 100% = dialog height, 120px = header + footer */
40
- height : 80% ;
41
- max-height : calc (100% - 120px );
42
- overflow-y : auto;
43
- }
44
-
45
- .list-ports .divisor , .list-volumes .divisor {
46
- font-size : 20px ;
47
- padding-top : 6px !important ;
48
- }
49
-
50
- .list-ports .port > div , .list-volumes .volume > div , .list-links .link > div {
51
- padding : 1px ;
52
- }
53
-
54
- .terminal-input {
55
- left : -10000px ;
56
- position : absolute;
57
- }
58
-
59
- .dockmodal-body {
60
- padding : 0 !important ;
61
- }
62
-
63
- .terminal-container , .terminal {
64
- height : 100% ;
65
- }
66
-
67
- .terminal {
68
- overflow-x : hidden !important ;
69
- }
70
-
71
- .terminal-size-indicator {
72
- display : none !important ;
73
- }
74
-
75
- .table {
76
- table-layout : fixed;
77
- }
78
-
79
- .truncate {
80
- width : 100px ;
81
- white-space : nowrap;
82
- overflow : hidden;
83
- text-overflow : ellipsis;
84
- }
85
-
86
- .label-right {
87
- float : right;
88
- padding : 6px 14px ;
89
- margin-left : 3px ;
90
- }
91
-
92
- .table-without-margin-bottom {
93
- margin-bottom : 0 ;
94
- }
95
-
96
- .modal-lg {
97
- width : 96% ;
98
- }
99
-
100
- /*#terminal-bar {*/
101
- /*position: fixed;*/
102
- /*background-color: gray;*/
103
- /*height: 30px;*/
104
- /*width: 100%;*/
105
- /*bottom: 0;*/
106
- /*opacity: 1.0;*/
107
- /*padding: 2px;*/
108
- /*}*/
109
- /*#terminal-bar .terminal-bar-item {*/
110
- /*display: inline-block;*/
111
- /*min-width: 160px;*/
112
- /*height: 26px;*/
113
- /*background-color: #ffffff;*/
114
- /*padding: 2px;*/
115
- /*}*/
116
-
117
- .dockmodal {
118
- /*top: 60px !important;*/
119
- }
120
- </ style >
13
+ < link rel ="stylesheet " type ="text/css " href ="./css/app.css " />
121
14
< script type ="text/javascript " src ="./node_modules/wdt-loading/wdtLoading.js "> </ script >
122
15
</ head >
123
16
< body >
203
96
< table class ="table table-bordered table-condensed table-hover table-striped table-responsive " id ="containers-list ">
204
97
< thead >
205
98
< tr >
206
- < th width ="10% " class ="text-center "> ID</ th >
207
- < th width ="15% " class ="text-center "> Name</ th >
208
- < th width ="25% "> Image</ th >
209
- < th width ="20% "> Ports</ th >
210
- < th width ="15% "> Command</ th >
211
- < th width ="10% "> Status</ th >
212
- < th style ="width: 140px; " class ="text-center "> Actions</ th >
99
+ < th style ="width: 120px; " class ="text-center "> ID</ th >
100
+ < th class ="text-center "> Name</ th >
101
+ < th style ="width: 320px; "> Image</ th >
102
+ < th > Ports</ th >
103
+ < th style ="width: 110px; " class ="text-center "> Public IP</ th >
104
+ < th style ="width: 130px; " class ="text-center "> Actions</ th >
213
105
</ tr >
214
106
</ thead >
215
107
< tbody > </ tbody >
229
121
< button class ="btn btn-xs pull-right " id ="btn-images-refresh ">
230
122
< span class ="glyphicon glyphicon-refresh " aria-hidden ="true "> </ span >
231
123
</ button >
232
- <!-- button class="btn btn-xs pull-right" id="btn-view-add-image" data-toggle="modal" data-target="#modal-add-image" style="margin-right: 5px;">
124
+ < button class ="btn btn-xs pull-right " id ="btn-view-add-image " data-toggle ="modal " data-target ="#modal-add-image " style ="margin-right: 5px; ">
233
125
< span class ="glyphicon glyphicon-plus-sign " aria-hidden ="true "> </ span >
234
- </button-- >
126
+ </ button >
235
127
</ div >
236
128
< div class ="panel-body ">
237
129
< div id ="images-list "> </ div >
241
133
</ div >
242
134
243
135
< div class ="modal fade " tabindex ="-1 " role ="dialog " id ="modal-add-image " aria-labelledby ="modal-add-imageLabel ">
244
- < div class ="modal-dialog " role ="document ">
136
+ < div class ="modal-dialog modal-lg " role ="document ">
245
137
< div class ="modal-content ">
246
138
< div class ="modal-header ">
247
139
< button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
@@ -273,7 +165,7 @@ <h4 class="modal-title">Add image</h4>
273
165
</ div >
274
166
275
167
< div class ="modal fade " tabindex ="-1 " role ="dialog " id ="modal-rename-image " aria-labelledby ="modal-rename-imageLabel ">
276
- < div class ="modal-dialog " role ="document ">
168
+ < div class ="modal-dialog modal-lg " role ="document ">
277
169
< div class ="modal-content ">
278
170
< div class ="modal-header ">
279
171
< button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
@@ -295,7 +187,7 @@ <h4 class="modal-title">Rename image</h4>
295
187
</ div >
296
188
297
189
< div class ="modal fade " tabindex ="-1 " role ="dialog " id ="modal-run-image " aria-labelledby ="modal-run-imageLabel ">
298
- < div class ="modal-dialog " role ="document ">
190
+ < div class ="modal-dialog modal-lg " role ="document ">
299
191
< div class ="modal-content ">
300
192
< div class ="modal-header ">
301
193
< button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
@@ -337,15 +229,41 @@ <h4 class="modal-title">Run image</h4>
337
229
338
230
< div class ="text-center ">
339
231
< label class ="checkbox-inline ">
340
- < input type ="checkbox " name ="terminal " checked ="checked " id ="terminal " value ="1 "> Terminal
232
+ < input type ="checkbox " name ="terminal " checked ="checked " id ="terminal " value ="1 " / > Terminal
341
233
</ label >
342
234
< label class ="checkbox-inline ">
343
- < input type ="checkbox " name ="interactive " checked ="checked " id ="interactive " value ="1 "> Interactive
235
+ < input type ="checkbox " name ="interactive " checked ="checked " id ="interactive " value ="1 " /> Interactive
236
+ </ label >
237
+ < label class ="checkbox-inline ">
238
+ < input type ="checkbox " name ="background " checked ="checked " id ="background " value ="1 " /> Background
344
239
</ label >
345
240
</ div >
346
-
347
241
< hr />
348
242
243
+ < ul class ="nav nav-tabs " role ="tablist ">
244
+ < li role ="presentation " class ="active "> < a href ="#run-image-ports " aria-controls ="run-image-ports " role ="tab " data-toggle ="tab "> Ports < button class ="btn btn-xs btn-primary btn-add-port "> < span class ="glyphicon glyphicon-plus-sign " aria-hidden ="true "> </ span > </ button > </ a > </ li >
245
+ < li role ="presentation "> < a href ="#run-image-volumes " aria-controls ="run-image-volumes " role ="tab " data-toggle ="tab "> Volumes < button class ="btn btn-xs btn-primary btn-add-volume "> < span class ="glyphicon glyphicon-plus-sign " aria-hidden ="true "> </ span > </ button > </ a > </ li >
246
+ < li role ="presentation "> < a href ="#run-image-links " aria-controls ="run-image-links " role ="tab " data-toggle ="tab "> Links < button class ="btn btn-xs btn-primary btn-add-link "> < span class ="glyphicon glyphicon-plus-sign " aria-hidden ="true "> </ span > </ button > </ a > </ li >
247
+ < li role ="presentation "> < a href ="#run-image-envs " aria-controls ="run-image-envs " role ="tab " data-toggle ="tab "> Envs < button class ="btn btn-xs btn-primary btn-add-env "> < span class ="glyphicon glyphicon-plus-sign " aria-hidden ="true "> </ span > </ button > </ a > </ li >
248
+ </ ul >
249
+
250
+ < div class ="tab-content ">
251
+ < div role ="tabpanel " class ="tab-pane active " id ="run-image-ports ">
252
+ < div class ="list-ports " style ="margin-top: 8px; "> </ div >
253
+ </ div >
254
+ < div role ="tabpanel " class ="tab-pane " id ="run-image-volumes ">
255
+ < div class ="list-volumes " style ="margin-top: 8px; "> </ div >
256
+ </ div >
257
+ < div role ="tabpanel " class ="tab-pane " id ="run-image-links ">
258
+ < div class ="list-links " style ="margin-top: 8px; "> </ div >
259
+ </ div >
260
+ < div role ="tabpanel " class ="tab-pane " id ="run-image-envs ">
261
+ < div class ="list-envs " style ="margin-top: 8px; "> </ div >
262
+ </ div >
263
+ </ div >
264
+
265
+ <!--hr />
266
+
349
267
<h4>Ports <button class="btn btn-xs btn-primary btn-add-port"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span></button></h4>
350
268
<div class="list-ports"></div>
351
269
@@ -357,7 +275,7 @@ <h4>Volumes <button class="btn btn-xs btn-primary btn-add-volume"><span class="g
357
275
<hr class="clearfix" />
358
276
359
277
<h4>Links <button class="btn btn-xs btn-primary btn-add-link"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span></button></h4>
360
- < div class ="list-links "> </ div >
278
+ <div class="list-links"></div-- >
361
279
362
280
</ form >
363
281
</ div >
@@ -402,17 +320,22 @@ <h4 class="modal-title"><span class="container-name"></span> <span class="label
402
320
</ table >
403
321
</ div >
404
322
< div class ="panel panel-default panel-stats ">
405
- < div class ="panel-heading "> Stats</ div >
406
- <!--table class="tb-container-stats table table-bordered table-condensed table-hover table-striped table-without-margin-bottom" style="display: none;">
407
- <thead></thead>
408
- <tbody></tbody>
409
- </table-->
410
- < div class ="panel-body ">
411
- <!--<canvas id="chart" width="400" height="100"></canvas>-->
412
- <!--div id="container" style="min-width: 310px;height: 400px; margin: 0 auto;"></div-->
323
+ < div class ="panel-heading "> Stats
324
+ < div class ="pull-right ">
325
+ < span class ="label label-info "> < span class ="container-stats-cpu-realtime "> </ span > </ span >
326
+ </ div >
413
327
</ div >
328
+ < div class ="panel-body "> </ div >
414
329
</ div >
415
- < div class ="panel panel-default ">
330
+ < div class ="panel panel-default panel-network ">
331
+ < div class ="panel-heading "> Network
332
+ < div class ="pull-right ">
333
+ < span class ="label label-default margin-right "> < span class ="container-stats-network-realtime "> </ span > </ span >
334
+ </ div >
335
+ </ div >
336
+ < div class ="panel-body "> </ div >
337
+ </ div >
338
+ < div class ="panel panel-default panel-top ">
416
339
< div class ="panel-heading "> Top</ div >
417
340
< table class ="tb-container-top table table-bordered table-condensed table-hover table-striped table-without-margin-bottom ">
418
341
< thead > </ thead >
@@ -453,18 +376,21 @@ <h4 class="modal-title"><span class="container-name"></span> <span class="label
453
376
< button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
454
377
< h4 class ="modal-title "> Containers Stats</ h4 >
455
378
</ div >
456
- < div class ="modal-body ">
457
- < table class ="table table-bordered table-condensed table-hover table-striped table-without-margin-bottom ">
458
- < tbody > </ tbody >
459
- </ table >
460
- </ div >
379
+ < div class ="modal-body "> </ div >
461
380
< div class ="modal-footer ">
462
381
< button type ="button " class ="btn btn-default " data-dismiss ="modal "> Close</ button >
463
382
</ div >
464
383
</ div >
465
384
</ div >
466
385
</ div >
467
386
387
+ < footer class ="footer ">
388
+ < div class ="container ">
389
+ < p class ="text-muted pull-left "> < a rel ="tooltip " title ="Github Open Source Project " href ="https://github.com/fontenele/docker-manager " target ="_blank "> GitHub Open Source</ a > </ p >
390
+ < p class ="text-muted pull-right "> < a rel ="tooltip " title ="Guilherme Fontenele " href ="https://github.com/fontenele " target ="_blank "> Guilherme Fontenele</ a > </ p >
391
+ </ div >
392
+ </ footer >
393
+
468
394
< script type ="text/javascript " src ="./node_modules/jquery/dist/jquery.js "> </ script >
469
395
< script type ="text/javascript " src ="./node_modules/noty/js/noty/packaged/jquery.noty.packaged.js "> </ script >
470
396
< script type ="text/javascript " src ="./node_modules/noty/js/noty/layouts/center.js "> </ script >
0 commit comments