github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/templates/application.hbs (about) 1 {{head-layout}} 2 {{title (if system.shouldShowRegions (concat system.activeRegion " - ")) "Nomad" separator=" - "}} 3 {{partial "svg-patterns"}} 4 {{#unless error}} 5 {{outlet}} 6 {{else}} 7 <div class="error-container"> 8 <div data-test-error class="error-message"> 9 {{#if isNoLeader}} 10 <h1 data-test-error-title class="title is-spaced">No Cluster Leader</h1> 11 <p data-test-error-message class="subtitle"> 12 The cluster has no leader. <a href="https://www.nomadproject.io/guides/outage.html"> Read about Outage Recovery.</a> 13 </p> 14 {{else if is500}} 15 <h1 data-test-error-title class="title is-spaced">Server Error</h1> 16 <p data-test-error-message class="subtitle">A server error prevented data from being sent to the client.</p> 17 {{else if is404}} 18 <h1 data-test-error-title class="title is-spaced">Not Found</h1> 19 <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> 20 {{else if is403}} 21 <h1 data-test-error-title class="title is-spaced">Not Authorized</h1> 22 {{#if token.secret}} 23 <p data-test-error-message class="subtitle">Your {{#link-to "settings.tokens" data-test-error-acl-link}}ACL token{{/link-to}} does not provide the required permissions. Contact your administrator if this is an error.</p> 24 {{else}} 25 <p data-test-error-message class="subtitle">Provide an {{#link-to "settings.tokens" data-test-error-acl-link}}ACL token{{/link-to}} with requisite permissions to view this.</p> 26 {{/if}} 27 {{else}} 28 <h1 data-test-error-title class="title is-spaced">Error</h1> 29 <p data-test-error-message class="subtitle">Something went wrong.</p> 30 {{/if}} 31 {{#if (eq config.environment "development")}} 32 <pre class="error-stack-trace"><code>{{errorStr}}</code></pre> 33 {{/if}} 34 </div> 35 <div class="error-links"> 36 {{#link-to "jobs" data-test-error-jobs-link class="button is-white"}}Go to Jobs{{/link-to}} 37 {{#link-to "clients" data-test-error-clients-link class="button is-white"}}Go to Clients{{/link-to}} 38 </div> 39 </div> 40 {{/unless}}