2023-04-10 15:36:59 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
2023-04-14 17:08:13 +00:00
|
|
|
~}}
|
2023-04-10 15:36:59 +00:00
|
|
|
|
2022-03-08 17:28:36 +00:00
|
|
|
{{page-title
|
|
|
|
(if this.system.shouldShowRegions (concat this.system.activeRegion " - "))
|
2023-02-02 21:29:04 +00:00
|
|
|
(if this.system.agent.config.UI.Label.Text (concat this.system.agent.config.UI.Label.Text " - "))
|
2022-03-08 17:28:36 +00:00
|
|
|
"Nomad"
|
|
|
|
separator=" - "
|
|
|
|
}}
|
2020-07-09 16:37:00 +00:00
|
|
|
<SvgPatterns />
|
2022-06-17 18:05:30 +00:00
|
|
|
|
|
|
|
<section class="notifications">
|
2023-03-02 18:52:16 +00:00
|
|
|
{{#each this.notifications.queue as |flash|}}
|
2022-06-17 18:05:30 +00:00
|
|
|
<FlashMessage @flash={{flash}} as |component flash close|>
|
2023-03-02 18:52:16 +00:00
|
|
|
<Hds::Toast
|
|
|
|
@color={{or flash.color "neutral"}}
|
|
|
|
@onDismiss={{
|
|
|
|
queue
|
|
|
|
(action close)
|
|
|
|
(action (optional flash.customCloseAction))
|
|
|
|
|
|
|
|
}}
|
|
|
|
as |T|>
|
|
|
|
{{#if flash.title}}
|
|
|
|
<T.Title>{{flash.title}}</T.Title>
|
|
|
|
{{/if}}
|
|
|
|
{{#if flash.message}}
|
|
|
|
<T.Description>{{flash.message}}</T.Description>
|
|
|
|
{{/if}}
|
|
|
|
{{#if flash.customAction}}
|
|
|
|
<T.Button @text={{flash.customAction.label}} @color="secondary" {{on "click" (action flash.customAction.action)}} />
|
|
|
|
{{/if}}
|
|
|
|
</Hds::Toast>
|
2022-06-17 18:05:30 +00:00
|
|
|
</FlashMessage>
|
|
|
|
{{/each}}
|
|
|
|
</section>
|
|
|
|
|
2022-08-17 16:59:33 +00:00
|
|
|
<KeyboardShortcutsModal />
|
|
|
|
|
2022-09-22 14:58:52 +00:00
|
|
|
<PortalTarget @name="log-sidebar-portal" />
|
|
|
|
|
2022-03-08 17:28:36 +00:00
|
|
|
{{#if this.error}}
|
2017-09-28 17:04:33 +00:00
|
|
|
<div class="error-container">
|
2018-01-05 20:59:36 +00:00
|
|
|
<div data-test-error class="error-message">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.isNoLeader}}
|
2018-07-31 21:32:17 +00:00
|
|
|
<h1 data-test-error-title class="title is-spaced">No Cluster Leader</h1>
|
|
|
|
<p data-test-error-message class="subtitle">
|
2022-03-08 17:28:36 +00:00
|
|
|
The cluster has no leader.
|
2023-03-07 20:52:26 +00:00
|
|
|
<a href="https://developer.hashicorp.com/nomad/tutorials/manage-clusters/outage-recovery">
|
2022-03-08 17:28:36 +00:00
|
|
|
Read about Outage Recovery.</a>
|
2018-07-31 21:32:17 +00:00
|
|
|
</p>
|
2021-04-01 18:21:30 +00:00
|
|
|
{{else if this.isOTTExchange}}
|
|
|
|
<h1 data-test-error-title class="title is-spaced">Token Exchange Error</h1>
|
|
|
|
<p data-test-error-message class="subtitle">
|
|
|
|
Failed to exchange the one-time token.
|
|
|
|
</p>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if this.is500}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h1 data-test-error-title class="title is-spaced">Server Error</h1>
|
2022-03-08 17:28:36 +00:00
|
|
|
<p data-test-error-message class="subtitle">A server error prevented
|
|
|
|
data from being sent to the client.</p>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if this.is404}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h1 data-test-error-title class="title is-spaced">Not Found</h1>
|
2022-03-08 17:28:36 +00:00
|
|
|
<p data-test-error-message class="subtitle">What you're looking for
|
|
|
|
couldn't be found. It either doesn't exist or you are not authorized
|
|
|
|
to see it.</p>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if this.is403}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h1 data-test-error-title class="title is-spaced">Not Authorized</h1>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.token.secret}}
|
2022-03-08 17:28:36 +00:00
|
|
|
<p data-test-error-message class="subtitle">Your
|
|
|
|
<LinkTo @route="settings.tokens" data-test-error-acl-link>ACL token</LinkTo>
|
|
|
|
does not provide the required permissions. Contact your
|
|
|
|
administrator if this is an error.</p>
|
2017-10-12 23:56:20 +00:00
|
|
|
{{else}}
|
2022-03-08 17:28:36 +00:00
|
|
|
<p data-test-error-message class="subtitle">Provide an
|
|
|
|
<LinkTo @route="settings.tokens" data-test-error-acl-link>ACL token</LinkTo>
|
|
|
|
with requisite permissions to view this.</p>
|
2017-10-12 23:56:20 +00:00
|
|
|
{{/if}}
|
2017-10-12 19:34:10 +00:00
|
|
|
{{else}}
|
2018-01-05 20:59:36 +00:00
|
|
|
<h1 data-test-error-title class="title is-spaced">Error</h1>
|
|
|
|
<p data-test-error-message class="subtitle">Something went wrong.</p>
|
2017-09-28 17:04:33 +00:00
|
|
|
{{/if}}
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (eq this.config.environment "development")}}
|
|
|
|
<pre class="error-stack-trace"><code>{{this.errorStr}}</code></pre>
|
2017-09-28 17:04:33 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-11-08 00:09:23 +00:00
|
|
|
<div class="error-links">
|
2022-03-08 17:28:36 +00:00
|
|
|
<LinkTo @route="jobs" data-test-error-jobs-link class="button is-white">Go
|
|
|
|
to Jobs</LinkTo>
|
|
|
|
<LinkTo
|
|
|
|
@route="clients"
|
|
|
|
data-test-error-clients-link
|
|
|
|
class="button is-white"
|
|
|
|
>Go to Clients</LinkTo>
|
2023-05-11 12:24:58 +00:00
|
|
|
<LinkTo
|
|
|
|
@route="settings.tokens"
|
|
|
|
data-test-error-signin-link
|
|
|
|
class="button is-white"
|
|
|
|
>Go to Sign In</LinkTo>
|
2018-11-08 00:09:23 +00:00
|
|
|
</div>
|
2017-09-28 17:04:33 +00:00
|
|
|
</div>
|
2022-03-08 17:28:36 +00:00
|
|
|
{{else}}
|
|
|
|
{{outlet}}
|
|
|
|
{{/if}}
|