{{title "Jobs"}}
{{#if isForbidden}} {{partial "partials/forbidden-message"}} {{else}}
{{#if visibleJobs.length}} {{search-box data-test-jobs-search searchTerm=(mut searchTerm) onChange=(action resetPagination) placeholder="Search jobs..."}} {{/if}}
{{#if (media "isMobile")}}
{{#if (can "run job")}} {{#link-to "jobs.run" data-test-run-job class="button is-primary"}}Run Job{{/link-to}} {{else}} {{/if}}
{{/if}}
{{multi-select-dropdown data-test-type-facet label="Type" options=optionsType selection=selectionType onSelect=(action setFacetQueryParam "qpType")}} {{multi-select-dropdown data-test-status-facet label="Status" options=optionsStatus selection=selectionStatus onSelect=(action setFacetQueryParam "qpStatus")}} {{multi-select-dropdown data-test-datacenter-facet label="Datacenter" options=optionsDatacenter selection=selectionDatacenter onSelect=(action setFacetQueryParam "qpDatacenter")}} {{multi-select-dropdown data-test-prefix-facet label="Prefix" options=optionsPrefix selection=selectionPrefix onSelect=(action setFacetQueryParam "qpPrefix")}}
{{#if (not (media "isMobile"))}}
{{#if (can "run job")}} {{#link-to "jobs.run" data-test-run-job class="button is-primary"}}Run Job{{/link-to}} {{else}} {{/if}}
{{/if}}
{{#if sortedJobs}} {{#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}} Groups Summary {{/t.head}} {{#t.body key="model.id" as |row|}} {{job-row data-test-job-row=row.model.plainId job=row.model onClick=(action "gotoJob" row.model)}} {{/t.body}} {{/list-table}}
{{page-size-select}}
{{/list-pagination}} {{else}}
{{#if (eq visibleJobs.length 0)}}

No Jobs

The cluster is currently empty.

{{else if (eq filteredJobs.length 0)}}

No Matches

No jobs match your current filter selection.

{{else if searchTerm}}

No Matches

No jobs match the term {{searchTerm}}

{{/if}}
{{/if}} {{/if}}