Removed search on 404 & 500 replaced with page return

This commit is contained in:
piratefinn 2017-05-11 16:38:19 +01:00
parent b888fb0193
commit fd810c1279
4 changed files with 20 additions and 14 deletions

View file

@ -7,14 +7,10 @@
<h4 class="pt-3">Oops! You're lost.</h4> <h4 class="pt-3">Oops! You're lost.</h4>
<p class="text-muted">The page you are looking for was not found.</p> <p class="text-muted">The page you are looking for was not found.</p>
</div> </div>
<div class="input-prepend input-group">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
<input id="prependedInput" class="form-control" size="16" type="text" placeholder="What are you looking for?">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-info" type="button">Search</button> <button class="btn btn-primary btn-lg" type="button"(click)="goBack()">Go Back</button>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>

View file

@ -1,10 +1,17 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Location } from '@angular/common';
@Component({ @Component({
templateUrl: '404.component.html' templateUrl: '404.component.html'
}) })
export class P404Component { export class P404Component {
constructor() { } constructor(
private location: Location
) {
}
goBack(): void {
this.location.back();
}
} }

View file

@ -7,14 +7,10 @@
<h4 class="pt-3">Houston, we have a problem!</h4> <h4 class="pt-3">Houston, we have a problem!</h4>
<p class="text-muted">The page you are looking for is temporarily unavailable.</p> <p class="text-muted">The page you are looking for is temporarily unavailable.</p>
</div> </div>
<div class="input-prepend input-group">
<span class="input-group-addon"><i class="fa fa-search"></i></span>
<input id="prependedInput" class="form-control" size="16" type="text" placeholder="What are you looking for?">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-info" type="button">Search</button> <button class="btn btn-primary btn-lg" type="button"(click)="goBack()">Go Back</button>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>

View file

@ -1,10 +1,17 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Location } from '@angular/common';
@Component({ @Component({
templateUrl: '500.component.html' templateUrl: '500.component.html'
}) })
export class P500Component { export class P500Component {
constructor() { } constructor(
private location: Location
) {
}
goBack(): void {
this.location.back();
}
} }