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">
<div class="error-message">
{{ # if is500 }}
<h1 class="title is-spaced">Server Error</h1>
<p class="subtitle">A server error prevented data from being sent to the client.</p>
{{ else if is404 }}
<h1 class="title is-spaced">Not Found</h1>
<p 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 }}
<h1 class="title is-spaced">Not Authorized</h1>
{{ # if token .secret }}
<p class="subtitle">Your {{ # link-to "settings.tokens" }} ACL token {{ / link-to }} does not provide the required permissions. Contact your administrator if this is an error.</p>
{{ else }}
<p class="subtitle">Provide an {{ # link-to "settings.tokens" }} ACL token {{ / link-to }} with requisite permissions to view this.</p>
{{ / if }}
2017-10-12 19:34:10 +00:00
{{ else }}
<h1 class="title is-spaced">Error</h1>
<p 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>
</div>
{{ / unless }}