316daf581e
* chore: run prettier on hbs files * ui: ensure to pass a real job object to task-group link * chore: add changelog entry * chore: prettify template * ui: template helper for formatting jobId in LinkTo component * ui: handle async relationship * ui: pass in job id to model arg instead of job model * update test for serialized namespace * ui: defend against null in tests * ui: prettified template added whitespace * ui: rollback ember-data to 3.24 because watcher return undefined on abort * ui: use format-job-helper instead of job model via alloc * ui: fix whitespace in template caused by prettier using template helper * ui: update test for new namespace * ui: revert prettier change Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
72 lines
1.6 KiB
Handlebars
72 lines
1.6 KiB
Handlebars
<div data-test-subnav="job" class="tabs is-subnav">
|
|
<ul>
|
|
<li data-test-tab="overview">
|
|
<LinkTo
|
|
@route="jobs.job.index"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
@current-when="jobs.job.index jobs.job.dispatch"
|
|
>
|
|
Overview
|
|
</LinkTo>
|
|
</li>
|
|
<li data-test-tab="definition">
|
|
<LinkTo
|
|
@route="jobs.job.definition"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
>
|
|
Definition
|
|
</LinkTo>
|
|
</li>
|
|
<li data-test-tab="versions">
|
|
<LinkTo
|
|
@route="jobs.job.versions"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
>
|
|
Versions
|
|
</LinkTo>
|
|
</li>
|
|
{{#if @job.supportsDeployments}}
|
|
<li data-test-tab="deployments">
|
|
<LinkTo
|
|
@route="jobs.job.deployments"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
>
|
|
Deployments
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
<li data-test-tab="allocations">
|
|
<LinkTo
|
|
@route="jobs.job.allocations"
|
|
@model={{format-job-id @job.id}}
|
|
@activeClass="is-active"
|
|
>
|
|
Allocations
|
|
</LinkTo>
|
|
</li>
|
|
<li data-test-tab="evaluations">
|
|
<LinkTo
|
|
@route="jobs.job.evaluations"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
>
|
|
Evaluations
|
|
</LinkTo>
|
|
</li>
|
|
{{#if this.shouldRenderClientsTab}}
|
|
<li data-test-tab="clients">
|
|
<LinkTo
|
|
@route="jobs.job.clients"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
>
|
|
Clients
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
</ul>
|
|
</div> |