-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjob.html
More file actions
144 lines (137 loc) · 6.53 KB
/
job.html
File metadata and controls
144 lines (137 loc) · 6.53 KB
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
<body>
<div id="jobLog" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="jobLogLabel" aria-hidden="true" style="width: 80%; margin-left: 0; left: 10%">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="jobLogLabel">JobLog</h3>
</div>
<div class="modal-body">
{{> jobLogBody}}
</div>
</div>
</body>
<template name="job">
<div class="settings btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-cog"></i>
<span class="caret"></span>
</a>
<ul class="dropdown-menu pull-right">
<li><button class="btn btn-primary btn-block btn-primary share-job" type="button">share</button></li>
<li><button class="btn btn-primary btn-block btn-primary rerun-job" type="button">rerun</button></li>
<li><button class="btn btn-primary btn-block btn-primary show-log" type="button">show log</button></li>
<li><button class="btn btn-primary btn-block btn-danger delete-archive" type="button">delete model archive</button></li>
<li><button class="btn btn-primary btn-block btn-danger delete-log" type="button">delete log</button></li>
<li><button class="btn btn-primary btn-block btn-danger delete-job" type="button">delete job</button></li>
</ul>
</div>
<table width="100%">
<tr valign="top">
<th align="right" width="10%">Model:</th><td class="">{{model}}</td>
</tr>
<tr valign="top">
<th align="right">Status:</th><td class="status {{statusClass}}">{{status}}</td>
</tr>
<tr valign="top">
<th align="right">Started:</th><td class="">{{startTime}}</td>
</tr>
{{#if finishTime}}
<tr valign="top">
<th align="right">Finished:</th><td class="">{{finishTime}}</td>
</tr>
{{/if}}
<tr valign="top">
<th align="right">Title:</th><td class="">{{> edit descriptionTitleContext}}</td>
</tr>
<tr valign="top">
<th align="right">Description:</th><td class="">{{> edit descriptionTextContext}}</td>
</tr>
{{> jobArgs inArgs}}
{{> jobResult}}
</table>
</template>
<template name="jobArgs">
{{#if args}}
<tr valign="top">
<th align="right" nowrap><a href="#" class="show-hide-args">{{showHideArgsText}}</a> Arguments:</th><td class="">
{{#if showArgs}}
<table>
{{#each args}}
<tr valign="top"><th align="right">{{name}}:</th><td>{{value}}</td></tr>
{{/each}}
</table>
{{/if}}
</td>
</tr>
{{/if}}
</template>
<template name="jobLogBody">
{{#if currentUser}}
<pre><code style="width: 80%"></code></pre>
{{/if}}
</template>
<template name="jobResult">
{{#each result}}
<tr valign="top">
<td align="center" colspan="2" class="result-title">
Result "{{id}}" <span class="addition">({{time}})</span>
<a class="btn btn-mini btn-warning right delete-result" href="#" title="delete result"><i class="icon-trash"></i></a>
</td>
</tr>
{{> jobArgs}}
<tr valign="top" class="result-list {{hiddenClass}}">
<th align="right">Result:</th>
<td class="job-result">
<table width="100%">
<tr valign="top">
<td width="50%">
{{#with resultMap}}
<table width="100%">
<tr><th colspan="2">Main Values</th></tr>
{{#each this}}
<tr valign="top">
<th align="right">
{{name}}{{> valueInfo info}}:
</th>
<td>{{value}}</td></tr>
{{/each}}
</table>
{{/with}}
</td>
<td>
{{#with resultTables}}
<table>
<tr><th colspan="2">Tables</th></tr>
{{#each this}}
<tr><th align="right">{{index}}{{> valueInfo info}}:</th><td>
<div class="map-hover">
<div class="head">
<a class="resultTable" href="{{hrefXlsx}}" target="_new">Excel</a>
</div>
<div class="additional">
<a class="resultTable" href="{{hrefXml}}" target="_new">XML</a><br />
<a class="resultTable" href="{{hrefCsv}}" target="_new">CSV</a>
</div>
</div>
{{#if isMap}}
<div class="map-hover">
<div class="head">
<a class="resultMapKml" href="#">Map</a>{{> loading}}
</div>
<div class="additional">
<a class="resultMapCsv" href="#">CSV</a><br />
<a class="resultMapXml" href="#">XML</a><br />
<a class="resultMapXlsx" href="#">Excel</a>
</div>
</div>
{{/if}}
</td></tr>
{{/each}}
</table>
{{/with}}
</td>
</tr>
</table>
</td>
</tr>
{{/each}}
</template>