github.com/anuvu/nomad@v0.8.7-atom1/ui/app/templates/jobs/index.hbs (about) 1 {{#global-header class="page-header"}} 2 <li class="is-active"> 3 {{#link-to "jobs.index"}}Jobs{{/link-to}} 4 </li> 5 {{/global-header}} 6 {{#gutter-menu class="page-body" onNamespaceChange=(action "refresh")}} 7 <section class="section"> 8 {{#if isForbidden}} 9 {{partial "partials/forbidden-message"}} 10 {{else}} 11 {{#if filteredJobs.length}} 12 <div class="content"> 13 <div>{{search-box data-test-jobs-search searchTerm=(mut searchTerm) placeholder="Search jobs..."}}</div> 14 </div> 15 {{/if}} 16 {{#list-pagination 17 source=sortedJobs 18 size=pageSize 19 page=currentPage as |p|}} 20 {{#list-table 21 source=p.list 22 sortProperty=sortProperty 23 sortDescending=sortDescending 24 class="with-foot" as |t|}} 25 {{#t.head}} 26 {{#t.sort-by prop="name"}}Name{{/t.sort-by}} 27 {{#t.sort-by prop="status"}}Status{{/t.sort-by}} 28 {{#t.sort-by prop="type"}}Type{{/t.sort-by}} 29 {{#t.sort-by prop="priority"}}Priority{{/t.sort-by}} 30 <th>Groups</th> 31 <th class="is-3">Summary</th> 32 {{/t.head}} 33 {{#t.body key="model.id" as |row|}} 34 {{job-row data-test-job-row job=row.model onClick=(action "gotoJob" row.model)}} 35 {{/t.body}} 36 {{/list-table}} 37 <div class="table-foot"> 38 <nav class="pagination"> 39 <div class="pagination-numbers"> 40 {{p.startsAt}}–{{p.endsAt}} of {{sortedJobs.length}} 41 {{#if searchTerm}} 42 <em>({{dec sortedJobs.length filteredJobs.length}} hidden by search term)</em> 43 {{/if}} 44 </div> 45 {{#p.prev class="pagination-previous"}} < {{/p.prev}} 46 {{#p.next class="pagination-next"}} > {{/p.next}} 47 <ul class="pagination-list"></ul> 48 </nav> 49 </div> 50 {{else}} 51 <div data-test-empty-jobs-list class="empty-message"> 52 {{#if (eq filteredJobs.length 0)}} 53 <h3 data-test-empty-jobs-list-headline class="empty-message-headline">No Jobs</h3> 54 <p class="empty-message-body"> 55 The cluster is currently empty. 56 </p> 57 {{else if searchTerm}} 58 <h3 data-test-empty-jobs-list-headline class="empty-message-headline">No Matches</h3> 59 <p class="empty-message-body">No jobs match the term <strong>{{searchTerm}}</strong></p> 60 {{/if}} 61 </div> 62 {{/list-pagination}} 63 {{/if}} 64 </section> 65 {{/gutter-menu}}