mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 09:48:01 -05:00
Provide optional 'first' link for navigating listings.
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user