github.com/hernad/nomad@v1.6.112/ui/app/templates/components/forbidden-message.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <div data-test-error class="empty-message">
     7    <h3 data-test-error-title class="empty-message-headline">Not Authorized</h3>
     8    <p data-test-error-message class="empty-message-body">
     9      {{#if this.token.secret}}
    10        You currently lack the
    11        {{#if this.permission}}
    12          <code>{{this.permission}}</code>
    13        {{else}}
    14          required
    15        {{/if}}
    16        <LinkTo @route="settings.tokens">permission</LinkTo> for this resource.<br /> Contact your administrator if this is an error.
    17      {{else}}
    18        {{#if this.authMethods}}
    19          Sign in with
    20          {{#each this.authMethods as |authMethod|}}
    21            <LinkTo @route="settings.tokens">{{authMethod.name}}</LinkTo>, 
    22          {{/each}}
    23          or
    24        {{/if}}
    25  
    26        {{conditionally-capitalize "provide" (not this.authMethods.length)}} a <LinkTo @route="settings.tokens">token</LinkTo> with the
    27        {{#if this.permission}}
    28          <code>{{this.permission}}</code>
    29        {{else}}
    30          requisite
    31        {{/if}}
    32        permission to view this.
    33      {{/if}}
    34    </p>
    35  
    36    {{#unless this.token.secret}}
    37      <p class="empty-message-body">
    38        If you have signed in via the Nomad CLI, authenticate with:
    39        <div class='terminal-container'>
    40          <pre class='terminal'><span class='prompt'>$</span> nomad ui -authenticate</pre>
    41        </div>
    42      </p>
    43    {{/unless}}
    44  </div>