open-vault/ui/app/templates/vault/error.hbs

35 lines
867 B
Handlebars
Raw Normal View History

<NavHeader data-test-header-without-nav as |Nav|>
<Nav.home>
<HomeLink @class="navbar-item splash-page-logo">
{{partial "svg/vault-edition-logo"}}
</HomeLink>
</Nav.home>
</NavHeader>
2018-04-03 14:16:57 +00:00
<section class="section">
<div class="container">
{{#if (eq model.httpStatus 404)}}
{{not-found model=model}}
{{else}}
<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3 has-text-grey">
{{#if (eq model.httpStatus 403)}}
Not authorized
{{else}}
Error
{{/if}}
</h1>
</p.levelLeft>
</PageHeader>
<BlockError>
2018-04-03 14:16:57 +00:00
{{#if model.message}}
<p>{{model.message}}</p>
{{/if}}
{{#each model.errors as |error|}}
<p>{{error}}</p>
{{/each}}
</BlockError>
2018-04-03 14:16:57 +00:00
{{/if}}
</div>
</section>