-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
463 lines (445 loc) · 19.3 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<!-- Document head -->
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<link rel="shortcut icon" href="1.3.0.3/img/site-favicon-ipsl.png" type="image/x-icon" />
<title>IPSL - HERMES</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS -->
<link href="ext/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="1.3.0.3/css/app.css" rel="stylesheet" media="screen">
<link href="1.3.0.3/css/simulation.monitoring.css" rel="stylesheet" media="screen">
<link href="1.3.0.3/css/simulation.shared.css" rel="stylesheet" media="screen">
<link href="ext/select2-4.0.2/css/select2.min.css" rel="stylesheet" media="screen">
<link href="ext/select2-4.0.2/css/select2-bootstrap.min.css" rel="stylesheet" media="screen">
<link href="ext/jquery-contextmenu/jquery.contextMenu.2.5.0.css" rel="stylesheet" media="screen">
</head>
<!-- Document body -->
<body>
<!-- Template: filter panel -->
<script type="underscore/template" id="filter-panel-template">
<div id="filter-panel" class='panel panel-info form-inline' style="margin-bottom: 2px;">
<div class='panel-body' style="padding: 9px 0px 5px 15px;">
<% _.each(MOD.state.filters, function(filter) { %>
<div class="col-md-3" style='margin-bottom: 3px;'>
<label style='width: 38%; font-size:0.9em;'>
<%- filter.displayName %>
</label>
<select id="filter-selector-<%= filter.key %>"
class="filter-selector form-control <%= filter.isCustom ? 'custom-filter' : '' %>"
style='width: 60%; font-size:0.9em;'>
</select>
</div>
<% }); %>
</div>
</div>
</script>
<!-- Template: search result table -->
<script type="underscore/template" id="grid-template">
<table class='table table-hover table-bordered table-condensed monitoring-table'>
<thead>
<tr id="grid-stats-pager-row" class="bg-primary">
<th colspan="15">
<span id="statistics-info" class="form-inline">
<label>
Filter by name:
</label>
<input id="text-filter" type='text' class='form-control input-sm' style="width: 15%; font-weight: normal;">
</span>
<%= APP.utils.renderTemplate("grid-sorter-template", MOD.state) %>
<%= APP.utils.renderTemplate("grid-pager-template", MOD.state) %>
</th>
</tr>
<%= APP.utils.renderTemplate("permalink-template", {MOD: MOD}) %>
<tr class="hermes-table-header">
<th title='Accounting Project' class="text-center">
<small>Acc. Project</small>
</th>
<th title='Name'>
<small>Name</small>
</th>
<th title='Try' class="text-center">
<small>Try</small>
</th>
<th title="Compute Jobs (Running | Complete | Late | Error)" class="text-center">
<small>Jobs (C)</small>
</th>
<th title="Post-Processing Jobs (Running | Complete | Late | Error)" class="text-center">
<small>Jobs (PP)</small>
</th>
<th title='Node - Machine' class="text-center">
<small >Machine</small>
</th>
<th title='Login' class="text-center">
<small>Login</small>
</th>
<th title='Tag / Model' class="text-center">
<small >Tag / Model</small>
</th>
<th title='Experiment' class="text-center">
<small>Experiment</small>
</th>
<th title='Space' class="text-center">
<small >Space</small>
</th>
<th title='Output Progress (%)' class="text-center">
<small>Output Progress (%)</small>
</th>
<th class="text-center" title='Open monitoring'>
<small>M</small>
</th>
<th class="text-center im-context-menu" title='Open inter-monitoring'>
<small>IM</small>
</th>
</tr>
</thead>
<%= APP.utils.renderTemplate("grid-body-template", MOD.state) %>
<tfoot>
<tr>
<td colspan="15">
<span>
<span class='badge' title='QUEUED'
style="background-color: #F5F5F5; color: #333;">
<small><strong> QUEUED </strong></small>
</span>
<span class='badge' title='RUNNING'
style="background-color: #D9EDF7; color: #333;">
<small><strong> RUNNING </strong></small>
</span>
<span class='badge' title='COMPLETE'
style="background-color: #DFF0D8; color: #333;">
<small><strong> COMPLETE </strong></small>
</span>
<span class='badge' title='LATE'
style="background-color: #F2DEDE; color: #333;">
<small><strong> LATE </strong></small>
</span>
<span class='badge' title='ERROR'
style="background-color: pink; color: #333;">
<small><strong> ERROR </strong></small>
</span>
<span>
</span>
<span class='badge' title='Monitoring'
style="background-color: #eceeef; color: black;">
<small><strong>M = Monitoring</strong></small>
</span>
<span class='badge' title='Inter-Monitoring'
style="background-color: #eceeef; color: black;">
<small><strong>IM = Inter-Monitoring</strong></small>
</span>
</span>
<span class='pull-right'>
<small><strong><a href='http://prodiguer-docs.readthedocs.org/en/latest/' target='blank'><%- APP.title %></a> <%- MOD.title %> v<%- APP.version %> © <%- year %> <a href='<%- APP.institute.homePage %>' target='_blank'>IPSL</a></strong></small>
</span>
</td>
</tr>
</tfoot>
</table>
</script>
<!-- Template: permalink table header row -->
<script type="underscore/template" id="permalink-template">
<tr id="grid-permalink-row" class="hidden bg-primary">
<th colspan="15">
<div class="input-group" style="width: 100%" >
<span>
<input id="permalink" type="text" class="form-control" style="font-size: 12px;" value="<%= MOD.getPermalink() %>"/>
</span>
<span class="input-group-btn">
<button class="btn btn-info active" id="btn-permalink-copy" title="Copy permalink to clipboard">
Copy
</button>
<button class="btn btn-default" id="btn-permalink-close" title="Close permalink">
Close
</button>
</span>
</div>
</th>
</tr>
</script>
<!-- Template: table sorter -->
<script type="underscore/template" id="grid-sorter-template">
<span id="grid-sort-panel" class="form-inline">
<label>
Sort by:
</label>
<select id="sort-field-selector"
class="form-control input-sm"
style='width: 13%; font-size:0.9em; color: #999;'>
<% _.each(MOD.state.sorting.fields, function(field) { %>
<option value="<%= field.key %>" <%= field.key == MOD.state.sorting.field.key ? "selected" : "" %>>
<%= field.displayName %>
</option>
<% }); %>
</select>
<select id="sort-direction-selector"
class="form-control input-sm"
style='width: 7%; font-size:0.9em; color: #999;'>
<% _.each(MOD.state.sorting.directions, function(direction) { %>
<option value="<%= direction.key %>" <%= direction.key == MOD.state.sorting.direction.key ? "selected" : "" %>>
<%= direction.displayName %>
</option>
<% }); %>
</select>
</span>
</script>
<!-- Template: table pager -->
<script type="underscore/template" id="grid-pager-template">
<span class='pull-right form-inline <%= paging.count < 2 ? '' : '' %>'>
<button type='button' class='pagination-control btn btn-sm btn-default pagination-first'>
<strong class="text-muted"><<</strong>
</button>
<button type='button' class='pagination-control btn btn-sm btn-default pagination-previous'>
<strong class="text-muted"> < </strong>
</button>
<input type='text' class='pagination-control pagination-info form-control input-sm'
placeholder="Page <%= paging.current ? paging.current.id : '0' %> of <%= paging.count %>">
<button type='button' class='pagination-control btn btn-sm btn-default pagination-next'>
<strong class="text-muted"> > </strong>
</button>
<button type='button' class='pagination-control btn btn-sm btn-default pagination-last'>
<strong class="text-muted">>></strong>
</button>
<select class="pagination-control pagination-page-size form-control input-sm">
<% _.each(MOD.state.pageSizeOptions, function(pageSize) { %>
<option value="<%= pageSize %>" <%= pageSize == MOD.state.pageSize ? "selected" : "" %>>
<%= pageSize %> / page
</option>
<% }); %>
</select>
<button id="btn-permalink-open" type="button" class="btn btn-info btn-sm">
Permalink
</button>
</span>
</script>
<!-- Template: search result table body -->
<script type="underscore/template" id="grid-body-template">
<tbody>
<% _.each((paging.current ? paging.current.data : []), function(s, simulationIndex) { %>
<%= APP.utils.renderTemplate("grid-row-template", {s: s, MOD: MOD}) %>
<% }); %>
</tbody>
</script>
<!-- Template: search result table row -->
<script type="underscore/template" id="grid-row-template">
<tr id="<%= s.uid %>" class='monitoring-state-<%= s.executionState %>'>
<td class="text-center">
<small>
<%= s.accountingProject %>
</small>
</td>
<td>
<small>
<%= s.name.slice(0, 30) + (s.name.length > 30 ? '...' : '') %>
</small>
</td>
<td class="text-center">
<small>
<%= s.tryID %>
</small>
</td>
<td class="text-center"
style="<%= s.jobCounts.c.e ? 'color: #333; background-color: pink;' :
s.jobCounts.c.l ? 'color: #333; background-color: #F2DEDE;' : ''%>"
title="<%= s.jobCounts.c.r + ' RUNNING | ' +
s.jobCounts.c.c + ' COMPLETE | ' +
s.jobCounts.c.l + ' LATE | ' +
s.jobCounts.c.e + ' ERROR' %>" >
<small>
<% if (s.jobCounts.all === 0) { %>
--
<% } else { %>
<%= s.jobCounts.c.r %> |
<%= s.jobCounts.c.c %> |
<%= s.jobCounts.c.l %> |
<%= s.jobCounts.c.e %>
<% } %>
</small>
</td>
<td class="text-center"
style="<%= s.jobCounts.p.e ? 'color: #333; background-color: pink;' :
s.jobCounts.p.l ? 'color: #333; background-color: #F2DEDE;' : ''%>"
title="<%= s.jobCounts.p.r + ' RUNNING | ' +
s.jobCounts.p.c + ' COMPLETE | ' +
s.jobCounts.p.l + ' LATE | ' +
s.jobCounts.p.e + ' ERROR' %>" >
<small>
<% if (s.jobCounts.all === 0) { %>
--
<% } else { %>
<%= s.jobCounts.p.r %> |
<%= s.jobCounts.p.c %> |
<%= s.jobCounts.p.l %> |
<%= s.jobCounts.p.e %>
<% } %>
</small>
</td>
<td class="text-center">
<small>
<%= s.ext.computeNodeMachine %>
</small>
</td>
<td class="text-center">
<small>
<%= s.computeNodeLogin %>
</small>
</td>
<td class="text-center">
<small>
<%= s.ext.model %>
</small>
</td>
<td class="text-center">
<small>
<%= s.ext.experiment %>
</small>
</td>
<td class="text-center">
<small>
<%= s.ext.space %>
</small>
</td>
<td class="text-center">
<% if (s.jobCounts.all === 0) { %>
<small>--</small>
<% } else if (s.ext.executionProgress === 0) { %>
<small>--</small>
<% } else if (s.ext.executionProgress === 1) { %>
<small>100 %</small>
<% } else { %>
<span class="progress">
<% if (s.executionState === 'running' || s.executionState === 'queued') { %>
<span class="progress-bar progress-bar-striped active actual" style="width: <%- numeral(s.ext.executionProgress * 100).format('0') %>%;">
<%- numeral(s.ext.executionProgress * 100).format('0') %> %
</span>
<% } else { %>
<span class="progress-bar actual" style="width: <%- numeral(s.ext.executionProgress * 100).format('0') %>%;">
<%- numeral(s.ext.executionProgress * 100).format('0') %> %
</span>
<% } %>
<span class="progress-bar remaining" style="width: <%- 100 - numeral(s.ext.executionProgress * 100).format('0') %>%;">
</span>
</span>
<% } %>
</td>
<td class="text-center monitoring">
<% if (s.isIM) { %>
<span><small><strong>M</strong></small></span>
<% } else { %>
--
<% } %>
</td>
<td class="text-center inter-monitoring">
<% if (s.isIM) { %>
<% if (s.ext.isSelectedForIM) { %>
<input type="checkbox" checked />
<% } else { %>
<input type="checkbox" />
<% } %>
<% } else { %>
<span >--</span>
<% } %>
</td>
</tr>
</script>
<!-- Template: inter-monitoring form -->
<script type="underscore/template" id="im-form-template">
<form id="inter-monitoring-form" method="POST" target="_blank" action="<%= httpPostTarget %>">
<% _.each(urls, function(url, urlIndex) { %>
<input type='hidden' id=simul<%= urlIndex + 1 %> name=simul<%= urlIndex + 1 %> value=<%= url %>></ input>
<% }); %>
</form>
</script>
<!-- Template: web-socket notifications -->
<script type="underscore/template" id="notification-info-template">
<div id="notification-info"
class="monitoring-state-<%= simulation ? simulation.executionState : 'running' %>"
style="padding: 12px 10px; margin-bottom: 2px; .border-radius( 5px );">
<strong id="notification-text">
<% if (simulation) { %>
<%= eventTimestamp.slice(0, 19) %> ::
<%= eventTypeDescription %> ::
<a href="<%= simulationDetailURL %>" target="_blank"><%= simulation.name %></a> is
<%= simulation.ext.executionState %>
<% } else { %>
Awaiting simulation events ...
<% } %>
</strong>
<strong class='pull-right simulation-stats'>
Simulations: Total = <span class="total-simulation-count"><%- simulationList.length %></span>;
Filtered = <span class="filtered-simulation-count"><%- simulationListFiltered.length %></span>.
</strong>
</div>
</script>
<!-- Template: web-socket close dialog -->
<script type="underscore/template" id="ws-close-dialog-template">
<div id="ws-close-dialog" class="modal fade" role="dialog" aria-labelledby="ws-close-dialog-label" aria-hidden="true" tabindex=-1>
<div class='modal-dialog'>
<div class='modal-content'>
<div class='modal-header'>
<h4 class='modal-title' id='ws-close-dialog-label'><%= APP.title %> <%= MOD.title %> v<%= APP.version %></h4>
</div>
<div class='modal-body'>
The HERMES web socket server connection has been interrupted.
</div>
<div class='modal-footer'>
<button type='button' class='btn btn-primary' id='ws-close-dialog-refresh-page-button'>Refresh page</button>
</div>
</div>
</div>
</div>
</script>
<!-- JS: 3rd party libraries -->
<script src="ext/jquery-3.2.1.min.js"></script>
<script src="ext/underscore.1.8.3.min.js"></script>
<script src="ext/backbone.1.3.3.min.js"></script>
<script src="ext/backbone-options-patch.js"></script>
<script src="ext/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="ext/jquery-contextmenu/jquery.contextMenu.2.5.0.js"></script>
<script src="ext/moment-2.18.1.min.js"></script>
<script src="ext/numeral-2.0.6.js"></script>
<script src="ext/js.cookie-2.1.4.js"></script>
<script src="ext/jsExtensions.js"></script>
<script src="ext/select2-4.0.2/js/select2.min.js"></script>
<!-- JS: Application shell -->
<script src="1.3.0.3/js/app/main.js"></script>
<script src="1.3.0.3/js/app/constants.js"></script>
<script src="1.3.0.3/js/app/cookies.js"></script>
<script src="1.3.0.3/js/app/init.js"></script>
<script src="1.3.0.3/js/app/options.js"></script>
<script src="1.3.0.3/js/app/state.js"></script>
<script src="1.3.0.3/js/app/templates.js"></script>
<script src="1.3.0.3/js/app/utils.js"></script>
<script src="1.3.0.3/js/app/view.content.js"></script>
<script src="1.3.0.3/js/app/view.header.js"></script>
<script src="1.3.0.3/js/app/view.footer.js"></script>
<script src="1.3.0.3/js/app/view.progress.js"></script>
<script src="1.3.0.3/js/app/view.js"></script>
<!-- JS: Module = monitoring (all) -->
<script src="1.3.0.3/js/simulation/shared/main.js"></script>
<script src="1.3.0.3/js/simulation/shared/utils.cv.js"></script>
<script src="1.3.0.3/js/simulation/shared/utils.im.js"></script>
<script src="1.3.0.3/js/simulation/shared/utils.ws.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/init.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/cookies.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/logger.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/state.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/state.utils.0.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/state.utils.1.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/state.utils.2.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/state.utils.3.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/fetch.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/fetch.events.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/data.extender.simulation.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/data.parser.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/data.mapper.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/view.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/view.renderer.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/view.events.js"></script>
<script src="1.3.0.3/js/simulation/monitoring/ws.events.js"></script>
</body>
</html>