-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpidq.html
320 lines (300 loc) · 11.4 KB
/
pidq.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
<!DOCTYPE html>
<html>
<!-- ---------------------------------------------- -->
<!-- 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="media/img/favicon.ico" type="image/x-icon" />
<title>ES-DOC - Errata - PID Queue</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- ---------------------------------------------- -->
<!-- CSS: -->
<!-- ---------------------------------------------- -->
<link href="ext/bootstrap-3.3.6/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="media/css/shared/defaults.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/shared/cv.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/shared/header.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/pidq/filter.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/pidq/grid.css" media="screen" rel="stylesheet" type="text/css" />
<link href="media/css/pidq/other.css" media="screen" rel="stylesheet" type="text/css" />
<!-- ---------------------------------------------- -->
<!-- JS: 3rd party libraries -->
<!-- ---------------------------------------------- -->
<script src="ext/jquery-2.2.3.min.js"></script>
<script src="ext/underscore-1.9.0.min.js"></script>
<script src="ext/backbone-1.4.1.min.js"></script>
<script src="ext/bootstrap-3.3.6/js/bootstrap.min.js"></script>
<script src="ext/js.cookie-2.2.0.js"></script>
<script src="ext/moment-2.29.4.min.js"></script>
<script src="ext/numeral-1.5.3.min.js"></script>
<!-- ---------------------------------------------- -->
<!-- JS: Application script -->
<!-- ---------------------------------------------- -->
<script src="media/js/pidq/index.js" type="module"></script>
<script src="dist/pidq.js" defer nomodule></script>
</head>
<!-- ---------------------------------------------- -->
<!-- Document body -->
<!-- ---------------------------------------------- -->
<body>
<!-- BEGIN: Page header -->
<script type="underscore/template" id="template-header">
<header class="main">
<!-- Logo -->
<img src="media/img/logo-1.png"
alt="Earth System Documentation"
title="Earth System Documentation"
class="pull-left esdoc-logo" />
<h1 class="pull-right">
<!-- Title -->
<small>
<b><%= APP.LONG_NAME %> - PID Queue</b>
</small>
<strong class="h6"> v<%= APP.VERSION %></strong>
<!-- Menu - Support -->
<div class="btn-group">
<button type="button" class="btn btn-success">Support</button>
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a class="esdoc-support" href="#">Email</a></li>
<li><a class="esdoc-docs" href="#">Documentation</a></li>
</ul>
</div>
</h1>
</header>
</script>
<!-- END: page header -->
<!-- BEGIN: filter panel -->
<script type="underscore/template" id="template-filter">
<div class="container-fluid bg-primary filter">
<div class="row">
<% _.each(_.sortBy(STATE.filters, 'uiPosition'), function(f) { %>
<label>
<%- f.label %>:
</label>
<% }); %>
</div>
<div class="row">
<% _.each(_.sortBy(STATE.filters, 'uiPosition'), function(f) { %>
<span>
<select id="filter-<%= f.key %>" class="form-control input-sm">
<% _.each(f.data.all, function(i) { %>
<option value="<%= i.key %>" <%= i === f.data.current ? "selected" : "" %> >
<%- i.label %>
</option>
<% }); %>
</select>
</span>
<% }); %>
</div>
</div>
</script>
<!-- END: filter panel -->
<!-- BEGIN: grid -->
<script type="underscore/template" id="template-grid">
<table class='container-fluid table table-hover table-bordered table-condensed'>
<%= UTILS.renderTemplate("template-grid-header", STATE) %>
<%= UTILS.renderTemplate("template-grid-body", STATE) %>
<%= UTILS.renderTemplate("template-grid-footer", STATE) %>
</table>
</script>
<!-- END: grid -->
<!-- BEGIN: grid header -->
<script type="underscore/template" id="template-grid-header">
<thead>
<tr class="bg-primary">
<th colspan="8">
<span class="pull-left summary-main">
<%= UTILS.renderTemplate("template-grid-header-summary", STATE) %>
</span>
<%= UTILS.renderTemplate("template-grid-header-pager", STATE) %>
</th>
</tr>
<tr class="column-headers">
<th title='Number' class="text-center sort-target">
<small>
#
</small>
</th>
<th title='Dataset ID' class="sort-target sort-target-datasetID">
<small class="sort-target-datasetID">
Dataset ID
</small>
<span class='pull-right glyphicon sort-target-datasetID' />
</th>
<th title='Timestamp' class="text-center sort-target sort-target-timestamp col-md-2">
<small class="sort-target-timestamp">
Timestamp
</small>
<span class='pull-right glyphicon sort-target-timestamp' />
</th>
<th title='Action' class="text-center sort-target sort-target-action col-md-1">
<small class="sort-target-action">
Action
</small>
<span class='pull-right glyphicon sort-target-action' />
</th>
<th title='Status' class="text-center sort-target sort-target-status col-md-1">
<small class="sort-target-status">
Status
</small>
<span class='pull-right glyphicon sort-target-status' />
</th>
</tr>
</thead>
</script>
<!-- END: grid header -->
<!-- BEGIN: grid body row -->
<script type="underscore/template" id="template-grid-body-row">
<tr id="<%= task.issueUID %>" class='task <%= task.status %>'>
<td title="task id" class="task-idx text-center">
<small>
<%= idx %>
</small>
</td>
<td title="task dataset identifier" class="task-datasetID">
<small>
<%= task.datasetID %>
</small>
</td>
<td title="task timestamp" class="task-timestamp text-center col-md-2">
<small>
<%= task.timestamp.slice(0, 10) %>
</small>
</td>
<td title="task action" class="task-action <%= task.action %> text-center col-md-1">
<small>
<%= task.ext.action.label %>
</small>
</td>
<td title="<%= task.error || 'task status'%>" class="task-status <%= task.status %> text-center col-md-1">
<small>
<%= task.ext.status.label %>
</small>
</td>
</tr>
<% if (task.error) { %>
<tr class='task <%= task.status %>'>
<td title="task id" class="task-idx text-center" />
<td title="task error" class="task-error" colspan="4">
<small>
<%= task.error %>
</small>
</td>
</tr>
<% } %>
</script>
<!-- END: grid body row -->
<!-- BEGIN: grid header pager -->
<script type="underscore/template" id="template-grid-header-pager">
<span class="pull-right form-inline pagination-container <%= paging.count < 2 ? 'hidden' : '' %>">
<button type="button"
class="btn btn-sm btn-default pagination-first">
<strong class="text-muted"><<</strong>
</button>
<button type="button"
class="btn btn-sm btn-default pagination-previous">
<strong class="text-muted"> < </strong>
</button>
<input type="text"
class="pagination-info form-control input-sm"
placeholder="Page <%= paging.current ? paging.current.id : '0' %> of <%= paging.count %>">
<button type="button"
class="btn btn-sm btn-default pagination-next">
<strong class="text-muted"> > </strong>
</button>
<button type="button"
class="btn btn-sm btn-default pagination-last">
<strong class="text-muted">>></strong>
</button>
<select class="pagination-page-size form-control input-sm">
<% _.each(STATE.paging.pageSizeOptions, function(pageSize) { %>
<option value="<%= pageSize %>" <%= pageSize == STATE.paging.pageSize ? "selected" : "" %>>
<%= pageSize %> / page
</option>
<% }); %>
</select>
</span>
</script>
<!-- END: grid header pager -->
<!-- BEGIN: grid header summary -->
<script type="underscore/template" id="template-grid-header-summary">
<span id="grid-header-summary">
Total Tasks = <%= STATE.searchData.total %>.
Filtered Tasks = <%= STATE.searchData.count %>.
</span>
</script>
<!-- END: grid header summary -->
<!-- BEGIN: grid body -->
<script type="underscore/template" id="template-grid-body">
<tbody>
<% if (paging.current) { %>
<% _.each((paging.current ? paging.current.data : []), function(task, idx) { %>
<%= UTILS.renderTemplate("template-grid-body-row", {task: task, idx:idx + 1}) %>
<% }); %>
<% } else { %>
<tr class="null-search">
<td colspan="8">
<strong>SEARCH RETURNED NO RESULTS</strong>
</td>
</tr>
<% } %>
</tbody>
</script>
<!-- END: grid body -->
<!-- BEGIN: grid footer -->
<script type="underscore/template" id="template-grid-footer">
<tfoot>
<tr class="bg-default">
<th colspan="8">
<%= UTILS.renderTemplate("template-grid-footer-summary", STATE) %>
<span class="pull-right">
<strong><small>
<%- APP.G_NAME %> v<%- APP.VERSION %> © <%- APP.copyrightYear %>
<a href="<%- CONSTANTS.URLS.HOME_PAGE %>" target='_blank'>ES-DOC</a>
</small></strong>
</span>
</th>
</tr>
</tfoot>
</script>
<!-- END: grid footer -->
<!-- BEGIN: grid footer summary -->
<script type="underscore/template" id="template-grid-footer-summary">
<span id="grid-footer-summary">
<strong><small>
Total Tasks = <%= STATE.searchData.total %>.
Filtered Tasks = <%= STATE.searchData.count %>.
</small></strong>
</span>
</script>
<!-- END: grid footer summary -->
<!-- BEGIN: feedback -->
<div id="feedbackContainer" class="modal fade feedback-container">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
<span class="feedback-title"></span>
<small class="feedback-version"></small>
</h4>
</div>
<div class="modal-body">
<p><b id="feedbackText"><b></p>
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;">
<span class="sr-only">100% Complete</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END: feedback -->
</body>
</html>