[page nav] display non clickable previous/next page when it does'nt make sense instead of nothing stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 Aug 2009 11:13:42 +0200
branchstable
changeset 3012 97696093ba54
parent 3011 657dfe374b08
child 3013 6a40a9a72957
[page nav] display non clickable previous/next page when it does'nt make sense instead of nothing
web/component.py
--- a/web/component.py	Wed Aug 26 11:11:40 2009 +0200
+++ b/web/component.py	Wed Aug 26 11:13:42 2009 +0200
@@ -72,7 +72,8 @@
     page_link_templ = u'<span class="slice"><a href="%s" title="%s">%s</a></span>'
     selected_page_link_templ = u'<span class="selectedSlice"><a href="%s" title="%s">%s</a></span>'
     previous_page_link_templ = next_page_link_templ = page_link_templ
-    no_previous_page_link = no_next_page_link = u''
+    no_previous_page_link = u'&lt;&lt;'
+    no_next_page_link = u'&gt;&gt;'
 
     def __init__(self, req, rset, **kwargs):
         super(NavigationComponent, self).__init__(req, rset, **kwargs)