2021-02-17 21:01:44 +00:00
|
|
|
{{page-title "Exec"}}
|
2020-03-24 23:22:16 +00:00
|
|
|
<nav class="navbar is-popup">
|
|
|
|
<div class="navbar-brand">
|
|
|
|
<div class="navbar-item is-logo">
|
2020-07-09 16:37:00 +00:00
|
|
|
<NomadLogo />
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.system.shouldShowRegions}}
|
2020-03-24 23:22:16 +00:00
|
|
|
<div class="navbar-item">
|
|
|
|
<span class="navbar-label">Region</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
<span data-test-region>{{this.model.region}}</span>
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.system.shouldShowNamespaces}}
|
2020-03-24 23:22:16 +00:00
|
|
|
<div class="navbar-item">
|
|
|
|
<span class="navbar-label">Namespace</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
<span data-test-namespace>{{this.model.namespace.id}}</span>
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="navbar-item">
|
|
|
|
<span class="navbar-label">Job</span>
|
2020-07-09 20:19:07 +00:00
|
|
|
<span data-test-job>{{this.model.name}}</span>
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="navbar-end">
|
2020-07-09 17:30:11 +00:00
|
|
|
<a href="https://nomadproject.io/docs" target="_blank" rel="noopener noreferrer" class="navbar-item">Documentation</a>
|
2020-03-24 23:22:16 +00:00
|
|
|
{{x-icon "lock-closed"}}
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (eq this.model.status "dead")}}
|
2020-04-28 13:33:07 +00:00
|
|
|
<div class="exec-window" data-test-exec-job-dead>
|
2020-04-06 19:08:22 +00:00
|
|
|
<div class="task-group-tree">
|
|
|
|
</div>
|
|
|
|
<div class="terminal-container" data-test-exec-job-dead-message>
|
2020-07-09 20:19:07 +00:00
|
|
|
Job <code>{{this.model.name}}</code> is dead and cannot host an exec session.
|
2020-04-06 19:08:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2020-04-28 13:33:07 +00:00
|
|
|
<div class="exec-window">
|
2020-04-06 19:08:22 +00:00
|
|
|
<div class="task-group-tree">
|
|
|
|
<h4 class="title is-6">Tasks</h4>
|
|
|
|
<ul>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#each this.sortedTaskGroups as |taskGroup|}}
|
2020-04-06 19:08:22 +00:00
|
|
|
<li data-test-task-group>
|
2020-06-01 19:03:56 +00:00
|
|
|
<Exec::TaskGroupParent
|
|
|
|
@taskGroup={{taskGroup}}
|
2020-07-09 20:19:07 +00:00
|
|
|
@shouldOpenInNewWindow={{this.socketOpen}}
|
|
|
|
@activeTaskName={{this.taskName}}
|
|
|
|
@activeTaskGroupName={{this.taskGroupName}} />
|
2020-04-06 19:08:22 +00:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
<ExecTerminal @terminal={{this.terminal}} />
|
2020-03-24 23:22:16 +00:00
|
|
|
</div>
|
2020-04-06 19:08:22 +00:00
|
|
|
{{/if}}
|