mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: add 404 page
Reuses old 404 image from 1.x branch, may be subject to change.
This commit is contained in:
@ -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({});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user