diff options
Diffstat (limited to 'views/lib')
-rw-r--r-- | views/lib/pager.jade | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/views/lib/pager.jade b/views/lib/pager.jade index 1a47e12..3a9d451 100644 --- a/views/lib/pager.jade +++ b/views/lib/pager.jade @@ -1,9 +1,10 @@ -mixin pager(pager, f) +mixin pager(pager, f, query) p if typeof pager.prevOffset == 'number' - a(href=f(pager.prevOffset)) << Previous + - query.offset=pager.prevOffset + a(href=f(query)) << Previous else - | Previous + | << Previous | | #{pager.offset / pager.pageSize + 1} / @@ -11,7 +12,8 @@ mixin pager(pager, f) | if typeof pager.nextOffset == 'number' - a(href=f(pager.nextOffset)) Next >> + - query.offset=pager.nextOffset + a(href=f(query)) Next >> else - | Next + | Next >> |