Browse Source

404 back improved.

pull/95/head
Sebastian Stehle 9 years ago
parent
commit
500b52d17c
  1. 7
      src/Squidex/app/shell/pages/not-found/not-found-page.component.html
  2. 12
      src/Squidex/app/shell/pages/not-found/not-found-page.component.ts

7
src/Squidex/app/shell/pages/not-found/not-found-page.component.html

@ -5,7 +5,10 @@
<h1>Not Found</h1>
<p>Sorry, the page you are looking for does not exist</p>
<p>
Sorry, the page or resource you are looking for does not exist.
When you create a new resource, for example an App or Schema it might take some seconds until it is available.
</p>
<a sqxParentLink>Back to Homepage</a>
<a href="#" (click)="back()">Back to previous page.</a>
</div>

12
src/Squidex/app/shell/pages/not-found/not-found-page.component.ts

@ -6,10 +6,20 @@
*/
import { Component } from '@angular/core';
import { Location } from '@angular/common';
@Component({
selector: 'sqx-not-found-page',
styleUrls: ['./not-found-page.component.scss'],
templateUrl: './not-found-page.component.html'
})
export class NotFoundPageComponent { }
export class NotFoundPageComponent {
constructor(
private readonly location: Location
) {
}
public back() {
this.location.back();
}
}
Loading…
Cancel
Save