diff options
| author | Julie Lala <jules@okfoc.us> | 2015-01-11 22:37:07 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-01-11 22:37:07 -0500 |
| commit | ffdee0615c775466053daff3ce4afd1d11c83e33 (patch) | |
| tree | aa75bf13e3f3834962672ecb9d7f3312f7f94a94 /server/lib | |
| parent | a1c9bdecff30d72eeaef54c66c7211966a97d4e4 (diff) | |
pagination
Diffstat (limited to 'server/lib')
| -rw-r--r-- | server/lib/views/staff.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/lib/views/staff.js b/server/lib/views/staff.js index 39a8dca..64cfe77 100644 --- a/server/lib/views/staff.js +++ b/server/lib/views/staff.js @@ -759,10 +759,13 @@ var staff = module.exports = { subscriptions: { index: function(req, res){ - res.render('staff/plans/index') + res.locals.pagination.count = res.locals.subscriptions.length + res.locals.pagination.max = res.locals.subscriptionCount + staff.paginate(req, res) + res.render('staff/subscriptions/index') }, show: function(req, res){ - res.render('staff/plans/show') + res.render('staff/subscriptions/show') }, }, |
