web/views/navigation.py
changeset 2789 39712da6f397
parent 2770 356e9d7c356d
child 3023 7864fee8b4ec
equal deleted inserted replaced
2788:8d3dbe577d3a 2789:39712da6f397
   185     __select__ = (one_line_rset() & primary_view()
   185     __select__ = (one_line_rset() & primary_view()
   186                   & match_context_prop() & implements(IPrevNext))
   186                   & match_context_prop() & implements(IPrevNext))
   187     context = 'navbottom'
   187     context = 'navbottom'
   188     order = 10
   188     order = 10
   189     def call(self, view=None):
   189     def call(self, view=None):
   190         entity = self.entity(0)
   190         entity = self.rset.get_entity(0,0)
   191         previous = entity.previous_entity()
   191         previous = entity.previous_entity()
   192         next = entity.next_entity()
   192         next = entity.next_entity()
   193         if previous or next:
   193         if previous or next:
   194             textsize = self.req.property_value('navigation.short-line-size')
   194             textsize = self.req.property_value('navigation.short-line-size')
   195             self.w(u'<div class="prevnext">')
   195             self.w(u'<div class="prevnext">')