client/general: unimplemented views empty viewport

This commit is contained in:
rr-
2016-05-29 12:21:25 +02:00
parent 1549b70ace
commit 87e8fb2e7d
2 changed files with 9 additions and 0 deletions

View File

@ -2,14 +2,17 @@
const page = require('page');
const topNavController = require('../controllers/top_nav_controller.js');
const EmptyView = require('../views/empty_view.js');
class CommentsController {
registerRoutes() {
page('/comments', (ctx, next) => { this._listCommentsRoute(); });
this._emptyView = new EmptyView();
}
_listCommentsRoute() {
topNavController.activate('comments');
this._emptyView.render();
}
}