client/general: add 404 page

Reuses old 404 image from 1.x branch, may be subject to change.
This commit is contained in:
rr-
2016-05-21 11:48:23 +02:00
parent 6beffc2ec1
commit e7fe7d3899
6 changed files with 8460 additions and 0 deletions

View File

@ -3,10 +3,12 @@
const page = require('page');
const topNavController = require('../controllers/top_nav_controller.js');
const HomeView = require('../views/home_view.js');
const NotFoundView = require('../views/not_found_view.js');
class HomeController {
constructor() {
this._homeView = new HomeView();
this._notFoundView = new NotFoundView();
}
registerRoutes() {
@ -21,6 +23,7 @@ class HomeController {
_notFoundRoute() {
topNavController.activate('');
this._notFoundView.render({});
}
}