|
|
@ -13,6 +13,7 @@ var pagination = require('../pagination');
|
|
|
|
var helpers = require('./helpers');
|
|
|
|
var helpers = require('./helpers');
|
|
|
|
var utils = require('../utils');
|
|
|
|
var utils = require('../utils');
|
|
|
|
var translator = require('../translator');
|
|
|
|
var translator = require('../translator');
|
|
|
|
|
|
|
|
var analytics = require('../analytics');
|
|
|
|
|
|
|
|
|
|
|
|
var categoryController = module.exports;
|
|
|
|
var categoryController = module.exports;
|
|
|
|
|
|
|
|
|
|
|
@ -144,6 +145,8 @@ categoryController.get = function (req, res, callback) {
|
|
|
|
res.locals.linkTags.push(rel);
|
|
|
|
res.locals.linkTags.push(rel);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
analytics.increment(['pageviews:byCid:' + categoryData.cid]);
|
|
|
|
|
|
|
|
|
|
|
|
res.render('category', categoryData);
|
|
|
|
res.render('category', categoryData);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
], callback);
|
|
|
|
], callback);
|
|
|
|