github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/templates/application.hbs (about)

     1  {{page-title (if this.system.shouldShowRegions (concat this.system.activeRegion " - ")) "Nomad" separator=" - "}}
     2  <SvgPatterns />
     3  {{#unless this.error}}
     4    {{outlet}}
     5  {{else}}
     6    <div class="error-container">
     7      <div data-test-error class="error-message">
     8        {{#if this.isNoLeader}}
     9          <h1 data-test-error-title class="title is-spaced">No Cluster Leader</h1>
    10          <p data-test-error-message class="subtitle">
    11            The cluster has no leader. <a href="https://www.nomadproject.io/guides/outage.html"> Read about Outage Recovery.</a>
    12          </p>
    13        {{else if this.is500}}
    14          <h1 data-test-error-title class="title is-spaced">Server Error</h1>
    15          <p data-test-error-message class="subtitle">A server error prevented data from being sent to the client.</p>
    16        {{else if this.is404}}
    17          <h1 data-test-error-title class="title is-spaced">Not Found</h1>
    18          <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>
    19        {{else if this.is403}}
    20          <h1 data-test-error-title class="title is-spaced">Not Authorized</h1>
    21          {{#if this.token.secret}}
    22            <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>
    23          {{else}}
    24            <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>
    25          {{/if}}
    26        {{else}}
    27          <h1 data-test-error-title class="title is-spaced">Error</h1>
    28          <p data-test-error-message class="subtitle">Something went wrong.</p>
    29        {{/if}}
    30        {{#if (eq this.config.environment "development")}}
    31          <pre class="error-stack-trace"><code>{{this.errorStr}}</code></pre>
    32        {{/if}}
    33      </div>
    34      <div class="error-links">
    35        <LinkTo @route="jobs" data-test-error-jobs-link class="button is-white">Go to Jobs</LinkTo>
    36        <LinkTo @route="clients" data-test-error-clients-link class="button is-white">Go to Clients</LinkTo>
    37      </div>
    38    </div>
    39  {{/unless}}