Revision 42300
Added by Michele Artini about 8 years ago
wf-process-modal.html | ||
---|---|---|
15 | 15 |
</h4> |
16 | 16 |
</div> |
17 | 17 |
<div class="modal-body"> |
18 |
<div class="row"> |
|
19 |
<div class="col-xs-7"> |
|
20 |
<b>Started at:</b> {{proc.startDate > 0 ? (proc.startDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}<br/> |
|
21 |
<b>Finished at:</b> {{proc.endDate > 0 ? (proc.endDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}<br/> |
|
22 |
<b>Duration:</b> {{calculateDateDiff(proc.startDate, proc.endDate)}}<br/> |
|
18 |
<div ng-show="currentNode.name"> |
|
19 |
<span><b>Node:</b> {{currentNode.name}}<br /></span> |
|
20 |
<span><b>Start date:</b> {{currentNode.startDate ? (currentNode.startDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}<br /></span> |
|
21 |
<span><b>End date:</b> {{currentNode.endDate ? (currentNode.endDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}<br /></span> |
|
22 |
<br /> |
|
23 |
<b>Parameters:</b> |
|
24 |
<pre>{{currentNode.params | json}}</pre> |
|
25 |
<br /><br /> |
|
26 |
<b>Env Parameters:</b> |
|
27 |
<pre>{{currentNode.envParams | json}}</pre> |
|
28 |
</div> |
|
29 |
|
|
30 |
<div ng-hide="currentNode.name"> |
|
31 |
<div class="row"> |
|
32 |
<div class="col-xs-7"> |
|
33 |
<b>Started at:</b> {{proc.startDate > 0 ? (proc.startDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}<br/> |
|
34 |
<b>Finished at:</b> {{proc.endDate > 0 ? (proc.endDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}<br/> |
|
35 |
<b>Duration:</b> {{calculateDateDiff(proc.startDate, proc.endDate)}}<br/> |
|
36 |
</div> |
|
37 |
<div class="col-xs-5"> |
|
38 |
<form class="form-inline pull-right"> |
|
39 |
<button type="button" class="btn btn-default btn-sm" ng-click="kill()" ng-show="proc.status == 'EXECUTING'">kill</button> |
|
40 |
<button type="button" class="btn btn-default btn-sm" ng-click="refresh()" ng-show="(proc.status == 'EXECUTING') || (proc.status == 'CREATED')"> |
|
41 |
<span class="glyphicon glyphicon-refresh"></span> |
|
42 |
</button> |
|
43 |
</form> |
|
44 |
</div> |
|
23 | 45 |
</div> |
24 |
<div class="col-xs-5"> |
|
25 |
<form class="form-inline pull-right"> |
|
26 |
<button type="button" class="btn btn-default btn-sm" ng-click="kill()" ng-show="proc.status == 'EXECUTING'">kill</button> |
|
27 |
<button type="button" class="btn btn-default btn-sm" ng-click="refresh()" ng-show="(proc.status == 'EXECUTING') || (proc.status == 'CREATED')"> |
|
28 |
<span class="glyphicon glyphicon-refresh"></span> |
|
29 |
</button> |
|
30 |
</form> |
|
46 |
<br /> |
|
47 |
<div ng-switch="contentToShow"> |
|
48 |
<table ng-switch-when="nodes" class="table table-condensed table-striped" style="table-layout: fixed; font-size: 12px;"> |
|
49 |
<thead> |
|
50 |
<tr> |
|
51 |
<th>Node</th> |
|
52 |
<th class="col-xs-3 text-center">Start date</th> |
|
53 |
<th class="col-xs-3 text-center">End date</th> |
|
54 |
<th class="col-xs-3 text-center">Progress</th> |
|
55 |
<th class="col-xs-1 text-center">Status</th> |
|
56 |
</tr> |
|
57 |
</thead> |
|
58 |
<tbody> |
|
59 |
<tr ng-repeat="n in proc.processNodes"> |
|
60 |
<th><a href="javascript:void(0)" ng-click="showNodeInfo(n)" ng-class="{ 'text-success' : n.status == 'done', 'text-danger' : n.status == 'failed' }">{{n.name}}</a></th> |
|
61 |
<td class="text-center">{{n.startDate ? (n.startDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}</td> |
|
62 |
<td class="text-center">{{n.endDate ? (n.endDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}</td> |
|
63 |
<td class="text-center">{{n.progress}}</td> |
|
64 |
<td class="text-center"> |
|
65 |
<div ng-switch="n.status"> |
|
66 |
<span ng-switch-when="done" class="glyphicon glyphicon-ok text-success icon-spin"></span> |
|
67 |
<span ng-switch-when="failed" class="glyphicon glyphicon-exclamation-sign text-danger"></span> |
|
68 |
<span ng-switch-default> |
|
69 |
<img src="../resources/img/ajax-loader-mini.gif" /> |
|
70 |
</span> |
|
71 |
</div> |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
</tbody> |
|
75 |
</table> |
|
76 |
|
|
77 |
<table ng-switch-when="journal" class="table table-condensed table-striped" style="table-layout: fixed; font-size: 12px;"> |
|
78 |
<tr ng-repeat="p in proc.outputParams"> |
|
79 |
<th class="col-xs-4"><a href="javascript:void(0)" ng-click="setCurrentParam(p)">{{p.name}}</a></th> |
|
80 |
<td style="text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">{{p.value}}</td> |
|
81 |
</tr> |
|
82 |
</table> |
|
83 |
|
|
84 |
<p ng-switch-default>Workflow not yet started, please click on "REFRESH" button.</p> |
|
31 | 85 |
</div> |
86 |
|
|
87 |
<div class="well" style="font-size: 11px" ng-show="currentParam.name"> |
|
88 |
<p><strong>{{currentParam.name}}</strong></p> |
|
89 |
<p>{{currentParam.value}}</p> |
|
90 |
</div> |
|
32 | 91 |
</div> |
33 |
<br /> |
|
34 |
<div ng-switch="contentToShow"> |
|
35 |
<table ng-switch-when="nodes" class="table table-condensed table-striped" style="table-layout: fixed; font-size: 12px;"> |
|
36 |
<thead> |
|
37 |
<tr> |
|
38 |
<th>Node</th> |
|
39 |
<th class="col-xs-3 text-center">Start date</th> |
|
40 |
<th class="col-xs-3 text-center">End date</th> |
|
41 |
<th class="col-xs-3 text-center">Progress</th> |
|
42 |
<th class="col-xs-1 text-center">Status</th> |
|
43 |
</tr> |
|
44 |
</thead> |
|
45 |
<tbody> |
|
46 |
<tr ng-repeat="n in proc.processNodes"> |
|
47 |
<th ng-class="{ 'text-success' : n.status == 'done', 'text-danger' : n.status == 'failed' }">{{n.name}}</th> |
|
48 |
<td class="text-center">{{n.startDate ? (n.startDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}</td> |
|
49 |
<td class="text-center">{{n.endDate ? (n.endDate | date:'yyyy-MM-dd HH:mm:ss Z') : '-'}}</td> |
|
50 |
<td class="text-center">{{n.progress}}</td> |
|
51 |
<td class="text-center"> |
|
52 |
<div ng-switch="n.status"> |
|
53 |
<span ng-switch-when="done" class="glyphicon glyphicon-ok text-success icon-spin"></span> |
|
54 |
<span ng-switch-when="failed" class="glyphicon glyphicon-exclamation-sign text-danger"></span> |
|
55 |
<span ng-switch-default> |
|
56 |
<img src="../resources/img/ajax-loader-mini.gif" /> |
|
57 |
</span> |
|
58 |
</div> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
</tbody> |
|
62 |
</table> |
|
63 |
|
|
64 |
<table ng-switch-when="journal" class="table table-condensed table-striped" style="table-layout: fixed; font-size: 12px;"> |
|
65 |
<tr ng-repeat="p in proc.outputParams"> |
|
66 |
<th class="col-xs-4"><a href="javascript:void(0)" ng-click="setCurrentParam(p)">{{p.name}}</a></th> |
|
67 |
<td style="text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">{{p.value}}</td> |
|
68 |
</tr> |
|
69 |
</table> |
|
70 |
|
|
71 |
<p ng-switch-default>Workflow not yet started, please click on "REFRESH" button.</p> |
|
72 |
</div> |
|
73 |
|
|
74 |
<div class="well" style="font-size: 11px" ng-show="currentParam.name"> |
|
75 |
<p><strong>{{currentParam.name}}</strong></p> |
|
76 |
<p>{{currentParam.value}}</p> |
|
77 |
</div> |
|
78 | 92 |
</div> |
79 | 93 |
<div class="modal-footer"> |
94 |
<button class="btn btn-default pull-left" ng-click="hideNodeInfo()" ng-show="currentNode.name"><span class="glyphicon glyphicon-chevron-left"></span> Return to graph</button> |
|
80 | 95 |
<button class="btn btn-default pull-left" ng-show="contentToShow == 'journal' && proc.processNodes.length > 0" ng-click="showContent('nodes')">Show nodes</button> |
81 | 96 |
<button class="btn btn-default pull-left" ng-show="contentToShow == 'nodes' && proc.outputParams.length > 0" ng-click="showContent('journal')">Show output parameters</button> |
82 | 97 |
<button class="btn btn-primary" data-dismiss="modal">Close</button> |
Also available in: Unified diff
process node viewer