ba5ae14b6c
* Added to subnav and basic table implemented * Existing services become service fragments, and services tab aggregated beneath job route * Index page within jobs/job/services * Watchable services * Lintfixes * Links to clients and individual services set up * Child service route * Keyboard shortcuts on service page * Model that shows consul services as well, plus level and provider cols * lintfix * Level as query param * Watch job for service name changes too * Lintfix * Testfixes * Placeholder mirage route
81 lines
1.9 KiB
Handlebars
81 lines
1.9 KiB
Handlebars
<div data-test-subnav="job" class="tabs is-subnav" {{did-insert this.keyboard.registerNav type="subnav"}} {{will-destroy this.keyboard.unregisterSubnav}}>
|
|
<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}}
|
|
<li data-test-tab="services">
|
|
<LinkTo
|
|
@route="jobs.job.services"
|
|
@model={{@job}}
|
|
@activeClass="is-active"
|
|
>
|
|
Services
|
|
</LinkTo>
|
|
</li>
|
|
</ul>
|
|
</div> |