e9e52e0dfe
This doesn’t include Ember Data, as we are still back on 3.12. Most changes are deprecation updates, linting fixes, and dependencies. It can be read commit-by-commit, though many of them are mechanical and skimmable. For the new linting exclusions, I’ve added them to the Tech Debt list. The decrease in test count is because linting is no longer included in ember test. There’s a new deprecation warning in the logs that can be fixed by updating Ember Power Select but when I tried that it caused it to render incorrectly, so I decided to ignore it for now and address it separately.
58 lines
1.8 KiB
Handlebars
58 lines
1.8 KiB
Handlebars
{{page-title "Exec"}}
|
|
<nav class="navbar is-popup">
|
|
<div class="navbar-brand">
|
|
<div class="navbar-item is-logo">
|
|
<NomadLogo />
|
|
</div>
|
|
</div>
|
|
{{#if this.system.shouldShowRegions}}
|
|
<div class="navbar-item">
|
|
<span class="navbar-label">Region</span>
|
|
<span data-test-region>{{this.model.region}}</span>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if this.system.shouldShowNamespaces}}
|
|
<div class="navbar-item">
|
|
<span class="navbar-label">Namespace</span>
|
|
<span data-test-namespace>{{this.model.namespace.id}}</span>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="navbar-item">
|
|
<span class="navbar-label">Job</span>
|
|
<span data-test-job>{{this.model.name}}</span>
|
|
</div>
|
|
<div class="navbar-end">
|
|
<a href="https://nomadproject.io/docs" target="_blank" rel="noopener noreferrer" class="navbar-item">Documentation</a>
|
|
{{x-icon "lock-closed"}}
|
|
</div>
|
|
</nav>
|
|
|
|
{{#if (eq this.model.status "dead")}}
|
|
<div class="exec-window" data-test-exec-job-dead>
|
|
<div class="task-group-tree">
|
|
</div>
|
|
<div class="terminal-container" data-test-exec-job-dead-message>
|
|
Job <code>{{this.model.name}}</code> is dead and cannot host an exec session.
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="exec-window">
|
|
<div class="task-group-tree">
|
|
<h4 class="title is-6">Tasks</h4>
|
|
<ul>
|
|
{{#each this.sortedTaskGroups as |taskGroup|}}
|
|
<li data-test-task-group>
|
|
<Exec::TaskGroupParent
|
|
@taskGroup={{taskGroup}}
|
|
@shouldOpenInNewWindow={{this.socketOpen}}
|
|
@activeTaskName={{this.taskName}}
|
|
@activeTaskGroupName={{this.taskGroupName}} />
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
<ExecTerminal @terminal={{this.terminal}} />
|
|
</div>
|
|
{{/if}} |