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

34 lines
879 B
Handlebars

<NavHeader data-test-header-without-nav as |Nav|>
<Nav.home>
<HomeLink @class="navbar-item splash-page-logo">
<LogoEdition />
</HomeLink>
</Nav.home>
</NavHeader>
<section class="section">
<div class="container">
{{#if (eq this.model.httpStatus 404)}}
<NotFound @model={{this.model}} />
{{else}}
<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3 has-text-grey">
{{#if (eq this.model.httpStatus 403)}}
Not authorized
{{else}}
Error
{{/if}}
</h1>
</p.levelLeft>
</PageHeader>
<BlockError>
{{#if this.model.message}}
<p>{{this.model.message}}</p>
{{/if}}
{{#each this.model.errors as |error|}}
<p>{{error}}</p>
{{/each}}
</BlockError>
{{/if}}
</div>
</section>