summaryrefslogtreecommitdiff
path: root/server/lib
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2015-01-11 22:37:07 -0500
committerJulie Lala <jules@okfoc.us>2015-01-11 22:37:07 -0500
commitffdee0615c775466053daff3ce4afd1d11c83e33 (patch)
treeaa75bf13e3f3834962672ecb9d7f3312f7f94a94 /server/lib
parenta1c9bdecff30d72eeaef54c66c7211966a97d4e4 (diff)
pagination
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/views/staff.js7
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')
},
},