|
|
@@ -59,6 +59,7 @@ module.exports = function(crowi, app) {
|
|
|
var path = getPathFromRequest(req);
|
|
|
var limit = 50;
|
|
|
var offset = parseInt(req.query.offset) || 0;
|
|
|
+ var SEENER_THRESHOLD = 10;
|
|
|
path = path + (path == '/' ? '' : '/');
|
|
|
|
|
|
// index page
|
|
|
@@ -90,6 +91,9 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
pagerOptions.length = pageList.length;
|
|
|
|
|
|
+ renderVars.config = {
|
|
|
+ seener_threshold: SEENER_THRESHOLD
|
|
|
+ };
|
|
|
renderVars.pager = generatePager(pagerOptions);
|
|
|
renderVars.pages = pageList;
|
|
|
res.render('page_list', renderVars);
|