[pagination] closes #2072029: add css class to div for "see them all" link for pagination.

authorSylvain Th?nault <sylvain.thenault@logilab.fr>
changesetfcb2d83de850
branchstable
phasepublic
hiddenno
parent revision#fbeb82fe45a4 [prev/next] properly translate previous/next links' title, closes #2072158
child revision#11b6589352b6 backport stable, #ffd510fb71da [doc] fix data hooks parent class in Hooks doc.
files modified by this revision
web/views/navigation.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1320408033 -3600
# Fri Nov 04 13:00:33 2011 +0100
# Branch stable
# Node ID fcb2d83de8506ae6bc5f4ed5cda71fc3bfa194ae
# Parent fbeb82fe45a42ae580ae755d77a7f15f9108c543
[pagination] closes #2072029: add css class to div for "see them all" link for pagination.

diff --git a/web/views/navigation.py b/web/views/navigation.py
@@ -286,11 +286,11 @@
1          # make a link to see them all
2          if show_all_option:
3              basepath = req.relative_path(includeparams=False)
4              params['__force_display'] = 1
5              url = nav.page_url(basepath, params)
6 -            w(u'<div><a href="%s">%s</a></div>\n'
7 +            w(u'<div class="displayAllLink"><a href="%s">%s</a></div>\n'
8                % (xml_escape(url), req._('show %s results') % len(rset)))
9          rset.limit(offset=start, limit=stop-start, inplace=True)
10 
11 
12  def paginate(view, show_all_option=True, w=None, page_size=None, rset=None):