Provide optional 'first' link for navigating listings.

This commit is contained in:
bsimpson63
2011-11-30 15:54:43 -08:00
parent e2d268bedf
commit acf43bf904

View File

@@ -75,6 +75,9 @@ class Listing(object):
p.update({'after':None, 'before':prev._fullname, 'count':bcount})
self.before = prev._fullname
self.prev = (request.path + utils.query_string(p))
p_first = request.get.copy()
p_first.update({'after':None, 'before':None, 'count':None})
self.first = (request.path + utils.query_string(p_first))
if self.nextprev and self.next_link and next:
p = request.get.copy()
p.update({'after':next._fullname, 'before':None, 'count':acount})