All files / src/app/components/error error.component.html

88.23% Statements 30/34
50% Branches 1/2
100% Functions 1/1
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20      5x 308x 308x 5x 5x 308x 313x 313x 313x 313x 5x 5x       5x  
<section class="hero">
    <div class="hero-body">
        <div class="grid">
            <div class="cell">
                <img class="illus" *ngIf="error.status !== 404" src="assets/svg/bug.svg" alt="bug">
                <img class="illus" *ngIf="error.status === 404" src="assets/svg/moon.svg" alt="bug">
            </div>
            <div class="cell">
                <h1 class="title" *ngIf="error.status !== 404">Server API error</h1>
                <h1 class="title" *ngIf="error.status === 404">{{resourceName ? resourceName : 'Item'}} not found (404)</h1>
                <p>Got an error when requesting {{error.url}}</p>
                <p *ngIf="error.statusText">{{error.statusText}}</p>
                <p *ngIf="error.status">{{error.status}}</p>
                <a (click)="goBack()" aria-hidden="true" class="button is-rounded cta">Go Back</a>
                <a routerLink="/" class="button is-rounded cta">Go Home</a>
            </div>
        </div>
    </div>
  </section>