mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need to use the model fragments beta. It can be reviewed on a commit-by-commit basis: blueprint updates, fixes for test failures, and the removal of now-deprecated partials. It’s not a true update to Octane as that would involve turning on template-only components by default, which breaks various things. We can accomplish that separately and then add the edition setting to package.json.
58 lines
1.7 KiB
Handlebars
58 lines
1.7 KiB
Handlebars
{{title "Exec"}}
|
|
<nav class="navbar is-popup">
|
|
<div class="navbar-brand">
|
|
<div class="navbar-item is-logo">
|
|
<NomadLogo />
|
|
</div>
|
|
</div>
|
|
{{#if system.shouldShowRegions}}
|
|
<div class="navbar-item">
|
|
<span class="navbar-label">Region</span>
|
|
<span data-test-region>{{model.region}}</span>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if system.shouldShowNamespaces}}
|
|
<div class="navbar-item">
|
|
<span class="navbar-label">Namespace</span>
|
|
<span data-test-namespace>{{model.namespace.id}}</span>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="navbar-item">
|
|
<span class="navbar-label">Job</span>
|
|
<span data-test-job>{{model.name}}</span>
|
|
</div>
|
|
<div class="navbar-end">
|
|
<a href="https://nomadproject.io/docs" target="_blank" rel="noopener" class="navbar-item">Documentation</a>
|
|
{{x-icon "lock-closed"}}
|
|
</div>
|
|
</nav>
|
|
|
|
{{#if (eq 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>{{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 sortedTaskGroups as |taskGroup|}}
|
|
<li data-test-task-group>
|
|
<Exec::TaskGroupParent
|
|
@taskGroup={{taskGroup}}
|
|
@shouldOpenInNewWindow={{socketOpen}}
|
|
@activeTaskName={{taskName}}
|
|
@activeTaskGroupName={{taskGroupName}} />
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
<ExecTerminal @terminal={{terminal}} />
|
|
</div>
|
|
{{/if}} |