backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 04 Nov 2011 13:03:35 +0100
changeset 8054 11b6589352b6
parent 8051 41398fa1a90f (current diff)
parent 8053 fcb2d83de850 (diff)
child 8055 368d8902e597
backport stable
web/component.py
web/views/navigation.py
--- a/web/component.py	Thu Nov 03 16:01:41 2011 +0100
+++ b/web/component.py	Fri Nov 04 13:03:35 2011 +0100
@@ -166,7 +166,7 @@
         start = max(0, start - self.page_size)
         stop = start + self.page_size - 1
         url = xml_escape(self.page_url(path, params, start, stop))
-        return self.previous_page_link_templ % (url, title, content)
+        return self.previous_page_link_templ % (url, self._cw._(title), content)
 
     def next_link(self, path, params, content=None, title=_('next_results')):
         if not content:
@@ -176,7 +176,7 @@
             return self.no_next_page_link
         stop = start + self.page_size - 1
         url = xml_escape(self.page_url(path, params, start, stop))
-        return self.next_page_link_templ % (url, title, content)
+        return self.next_page_link_templ % (url, self._cw._(title), content)
 
 
 # new contextual components system #############################################
--- a/web/views/navigation.py	Thu Nov 03 16:01:41 2011 +0100
+++ b/web/views/navigation.py	Fri Nov 04 13:03:35 2011 +0100
@@ -294,7 +294,7 @@
             basepath = req.relative_path(includeparams=False)
             params['__force_display'] = 1
             url = nav.page_url(basepath, params)
-            w(u'<div><a href="%s">%s</a></div>\n'
+            w(u'<div class="displayAllLink"><a href="%s">%s</a></div>\n'
               % (xml_escape(url), req._('show %s results') % len(rset)))
         rset.limit(offset=start, limit=stop-start, inplace=True)