github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/application.hbs (about) 1 {{page-title 2 (if this.system.shouldShowRegions (concat this.system.activeRegion " - ")) 3 "Nomad" 4 separator=" - " 5 }} 6 <SvgPatterns /> 7 8 <section class="notifications"> 9 {{#each this.flashMessages.queue as |flash|}} 10 <FlashMessage @flash={{flash}} as |component flash close|> 11 <span class="close-button" role="button" {{on "click" 12 (queue 13 (action close) 14 (action (optional flash.customCloseAction)) 15 ) 16 }}>×</span> 17 {{#if flash.title}} 18 <h3>{{flash.title}}</h3> 19 {{/if}} 20 {{#if flash.message}} 21 <p>{{flash.message}}</p> 22 {{/if}} 23 {{#if flash.customAction}} 24 <button type="button" class="button custom-action-button" {{on "click" (action flash.customAction.action)}}>{{flash.customAction.label}}</button> 25 {{/if}} 26 {{#if component.showProgressBar}} 27 <div class="alert-progress"> 28 <div class="alert-progressBar" style={{component.progressDuration}}></div> 29 </div> 30 {{/if}} 31 </FlashMessage> 32 {{/each}} 33 </section> 34 35 <KeyboardShortcutsModal /> 36 37 <PortalTarget @name="log-sidebar-portal" /> 38 39 {{#if this.error}} 40 <div class="error-container"> 41 <div data-test-error class="error-message"> 42 {{#if this.isNoLeader}} 43 <h1 data-test-error-title class="title is-spaced">No Cluster Leader</h1> 44 <p data-test-error-message class="subtitle"> 45 The cluster has no leader. 46 <a href="https://www.nomadproject.io/guides/outage.html"> 47 Read about Outage Recovery.</a> 48 </p> 49 {{else if this.isOTTExchange}} 50 <h1 data-test-error-title class="title is-spaced">Token Exchange Error</h1> 51 <p data-test-error-message class="subtitle"> 52 Failed to exchange the one-time token. 53 </p> 54 {{else if this.is500}} 55 <h1 data-test-error-title class="title is-spaced">Server Error</h1> 56 <p data-test-error-message class="subtitle">A server error prevented 57 data from being sent to the client.</p> 58 {{else if this.is404}} 59 <h1 data-test-error-title class="title is-spaced">Not Found</h1> 60 <p data-test-error-message class="subtitle">What you're looking for 61 couldn't be found. It either doesn't exist or you are not authorized 62 to see it.</p> 63 {{else if this.is403}} 64 <h1 data-test-error-title class="title is-spaced">Not Authorized</h1> 65 {{#if this.token.secret}} 66 <p data-test-error-message class="subtitle">Your 67 <LinkTo @route="settings.tokens" data-test-error-acl-link>ACL token</LinkTo> 68 does not provide the required permissions. Contact your 69 administrator if this is an error.</p> 70 {{else}} 71 <p data-test-error-message class="subtitle">Provide an 72 <LinkTo @route="settings.tokens" data-test-error-acl-link>ACL token</LinkTo> 73 with requisite permissions to view this.</p> 74 {{/if}} 75 {{else}} 76 <h1 data-test-error-title class="title is-spaced">Error</h1> 77 <p data-test-error-message class="subtitle">Something went wrong.</p> 78 {{/if}} 79 {{#if (eq this.config.environment "development")}} 80 <pre class="error-stack-trace"><code>{{this.errorStr}}</code></pre> 81 {{/if}} 82 </div> 83 <div class="error-links"> 84 <LinkTo @route="jobs" data-test-error-jobs-link class="button is-white">Go 85 to Jobs</LinkTo> 86 <LinkTo 87 @route="clients" 88 data-test-error-clients-link 89 class="button is-white" 90 >Go to Clients</LinkTo> 91 </div> 92 </div> 93 {{else}} 94 {{outlet}} 95 {{/if}}