2019-07-17 20:02:58 +00:00
{{ head-layout }}
{{ title ( if system .shouldShowRegions ( concat system .activeRegion " - " ) ) "Nomad" separator = " - " }}
2017-09-19 14:47:10 +00:00
{{ partial "svg-patterns" }}
2017-09-28 17:04:33 +00:00
{{ # unless error }}
{{ outlet }}
{{ else }}
<div class="error-container">
2018-01-05 20:59:36 +00:00
<div data-test-error class="error-message">
2018-07-31 21:32:17 +00:00
{{ # if isNoLeader }}
<h1 data-test-error-title class="title is-spaced">No Cluster Leader</h1>
<p data-test-error-message class="subtitle">
The cluster has no leader. <a href="https://www.nomadproject.io/guides/outage.html"> Read about Outage Recovery.</a>
</p>
{{ else if is500 }}
2018-01-05 20:59:36 +00:00
<h1 data-test-error-title class="title is-spaced">Server Error</h1>
<p data-test-error-message class="subtitle">A server error prevented data from being sent to the client.</p>
2017-09-28 17:04:33 +00:00
{{ else if is404 }}
2018-01-05 20:59:36 +00:00
<h1 data-test-error-title class="title is-spaced">Not Found</h1>
<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>
2017-10-12 23:56:20 +00:00
{{ else if is403 }}
2018-01-05 20:59:36 +00:00
<h1 data-test-error-title class="title is-spaced">Not Authorized</h1>
2017-10-12 23:56:20 +00:00
{{ # if token .secret }}
2018-01-05 20:59:36 +00:00
<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>
2017-10-12 23:56:20 +00:00
{{ else }}
2018-01-05 20:59:36 +00:00
<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>
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 }}
{{ # if ( eq config .environment "development" ) }}
<pre class="error-stack-trace"><code> {{ errorStr }} </code></pre>
{{ / if }}
</div>
2018-11-08 00:09:23 +00:00
<div class="error-links">
2018-11-08 00:19:45 +00:00
{{ # link-to "jobs" data-test-error-jobs-link class = "button is-white" }} Go to Jobs {{ / link-to }}
{{ # link-to "clients" data-test-error-clients-link class = "button is-white" }} Go to Clients {{ / link-to }}
2018-11-08 00:09:23 +00:00
</div>
2017-09-28 17:04:33 +00:00
</div>
{{ / unless }}