2016-03-19 20:37:04 +00:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-06 19:49:26 +00:00
|
|
|
const page = require('page');
|
2016-03-31 22:20:34 +00:00
|
|
|
const topNavController = require('../controllers/top_nav_controller.js');
|
2016-05-29 10:21:25 +00:00
|
|
|
const EmptyView = require('../views/empty_view.js');
|
2016-03-19 20:37:04 +00:00
|
|
|
|
2016-03-31 22:20:34 +00:00
|
|
|
class CommentsController {
|
2016-04-06 19:49:26 +00:00
|
|
|
registerRoutes() {
|
2016-05-20 19:35:12 +00:00
|
|
|
page('/comments', (ctx, next) => { this._listCommentsRoute(); });
|
2016-05-29 10:21:25 +00:00
|
|
|
this._emptyView = new EmptyView();
|
2016-04-06 19:49:26 +00:00
|
|
|
}
|
|
|
|
|
2016-05-20 19:35:12 +00:00
|
|
|
_listCommentsRoute() {
|
2016-03-31 22:20:34 +00:00
|
|
|
topNavController.activate('comments');
|
2016-05-29 10:21:25 +00:00
|
|
|
this._emptyView.render();
|
2016-03-19 20:37:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-31 22:20:34 +00:00
|
|
|
module.exports = new CommentsController();
|