search newer/older than and better pagination

This commit is contained in:
barisusakli
2015-02-06 19:47:27 -05:00
parent 722b629572
commit 38dd3d4281
9 changed files with 229 additions and 60 deletions

View File

@@ -260,8 +260,7 @@ categoriesController.get = function(req, res, next) {
data.currentPage = page;
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
data['rssFeedUrl'] = nconf.get('relative_path') + '/category/' + data.cid + '.rss';
pagination.create(data.currentPage, data.pageCount, data);
data.pagination = pagination.create(data.currentPage, data.pageCount);
data.pagination.rel.forEach(function(rel) {
res.locals.linkTags.push(rel);