2017-09-19 14:47:10 +00:00
|
|
|
{{#global-header class="page-header"}}
|
2017-12-20 01:25:35 +00:00
|
|
|
<li class="is-active">
|
|
|
|
{{#link-to "jobs.index"}}Jobs{{/link-to}}
|
|
|
|
</li>
|
2017-09-19 14:47:10 +00:00
|
|
|
{{/global-header}}
|
2017-10-10 02:00:40 +00:00
|
|
|
{{#gutter-menu class="page-body" onNamespaceChange=(action "refresh")}}
|
2017-09-19 14:47:10 +00:00
|
|
|
<section class="section">
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if isForbidden}}
|
|
|
|
{{partial "partials/forbidden-message"}}
|
2017-09-30 00:41:12 +00:00
|
|
|
{{else}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if filteredJobs.length}}
|
|
|
|
<div class="content">
|
2018-01-05 20:59:36 +00:00
|
|
|
<div>{{search-box data-test-jobs-search searchTerm=(mut searchTerm) placeholder="Search jobs..."}}</div>
|
2017-10-24 23:07:43 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#list-pagination
|
|
|
|
source=sortedJobs
|
|
|
|
size=pageSize
|
|
|
|
page=currentPage as |p|}}
|
|
|
|
{{#list-table
|
|
|
|
source=p.list
|
|
|
|
sortProperty=sortProperty
|
|
|
|
sortDescending=sortDescending
|
|
|
|
class="with-foot" as |t|}}
|
|
|
|
{{#t.head}}
|
|
|
|
{{#t.sort-by prop="name"}}Name{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="status"}}Status{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="type"}}Type{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="priority"}}Priority{{/t.sort-by}}
|
|
|
|
<th>Groups</th>
|
2018-01-23 21:26:07 +00:00
|
|
|
<th class="is-3">Summary</th>
|
2017-10-24 23:07:43 +00:00
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body key="model.id" as |row|}}
|
2018-01-05 20:59:36 +00:00
|
|
|
{{job-row data-test-job-row job=row.model onClick=(action "gotoJob" row.model)}}
|
2017-10-24 23:07:43 +00:00
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
|
|
|
<div class="table-foot">
|
|
|
|
<nav class="pagination">
|
|
|
|
<div class="pagination-numbers">
|
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{sortedJobs.length}}
|
|
|
|
</div>
|
|
|
|
{{#p.prev class="pagination-previous"}} < {{/p.prev}}
|
|
|
|
{{#p.next class="pagination-next"}} > {{/p.next}}
|
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<div data-test-empty-jobs-list class="empty-message">
|
2017-10-24 23:07:43 +00:00
|
|
|
{{#if (eq filteredJobs.length 0)}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h3 data-test-empty-jobs-list-headline class="empty-message-headline">No Jobs</h3>
|
2017-10-24 23:07:43 +00:00
|
|
|
<p class="empty-message-body">
|
2017-10-24 23:11:01 +00:00
|
|
|
The cluster is currently empty.
|
2017-10-24 23:07:43 +00:00
|
|
|
</p>
|
|
|
|
{{else if searchTerm}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h3 data-test-empty-jobs-list-headline class="empty-message-headline">No Matches</h3>
|
2017-10-24 23:07:43 +00:00
|
|
|
<p class="empty-message-body">No jobs match the term <strong>{{searchTerm}}</strong></p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/list-pagination}}
|
|
|
|
{{/if}}
|
2017-09-19 14:47:10 +00:00
|
|
|
</section>
|
|
|
|
{{/gutter-menu}}
|