62 lines
2.1 KiB
Handlebars
62 lines
2.1 KiB
Handlebars
|
<table id={{table-id}} class="display table table-striped table-bordered" cellspacing="0" width="100%">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Application ID</th>
|
||
|
<th>Name</th>
|
||
|
<th>User</th>
|
||
|
<th>Queue</th>
|
||
|
<th>State</th>
|
||
|
<th>Final Status</th>
|
||
|
<th>Start Time</th>
|
||
|
<th>Elapsed Time</th> <!-- idx = 7 -->
|
||
|
<th>Finished Time</th>
|
||
|
<th>Priority</th>
|
||
|
<th>Progress</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{{#if arr}}
|
||
|
{{#each arr as |app|}}
|
||
|
<tr>
|
||
|
<td><a href="yarnApp/{{app.id}}">{{app.id}}</a></td>
|
||
|
<td>{{app.appName}}</td>
|
||
|
<td>{{app.user}}</td>
|
||
|
<td>{{app.queue}}</td>
|
||
|
<td>{{app.state}}</td>
|
||
|
<td><span class={{app.finalStatusStyle}}>{{app.finalStatus}}</span></td>
|
||
|
<td>{{app.startTime}}</td>
|
||
|
<td>{{app.elapsedTime}}</td>
|
||
|
<td>{{app.finishedTime}}</td>
|
||
|
<td>{{app.priority}}</td>
|
||
|
<td>
|
||
|
<div class="progress" style="margin-bottom: 0;">
|
||
|
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style={{app.progressStyle}}>
|
||
|
{{app.progress}}%
|
||
|
</div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{{/each}}
|
||
|
{{else}}
|
||
|
<tr>
|
||
|
<td><a href="yarnApp/{{app.id}}">{{app.id}}</a></td>
|
||
|
<td>{{app.appName}}</td>
|
||
|
<td>{{app.user}}</td>
|
||
|
<td>{{app.queue}}</td>
|
||
|
<td>{{app.state}}</td>
|
||
|
<td><span class={{app.finalStatusStyle}}>{{app.finalStatus}}</span></td>
|
||
|
<td>{{app.startTime}}</td>
|
||
|
<td>{{app.elapsedTime}}</td>
|
||
|
<td>{{app.finishedTime}}</td>
|
||
|
<td>{{app.priority}}</td>
|
||
|
<td>
|
||
|
<div class="progress" style="margin-bottom: 0;">
|
||
|
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style={{app.progressStyle}}>
|
||
|
{{app.progress}}%
|
||
|
</div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{{/if}}
|
||
|
</tbody>
|
||
|
</table>
|