diff --git a/views.py b/views.py index 3ad1f24392f0956e1b43df5324bdc9d1625079f4_dmlld3MucHk=..dc9ac6be96441da77dd7518ceafbad872a1c5b51_dmlld3MucHk= 100644 --- a/views.py +++ b/views.py @@ -72,9 +72,11 @@ (firstday.strftime('%Y-%m-%d'), lastday.strftime('%Y-%m-%d'))) args = {'firstday':firstday, 'lastday':lastday} nmb_entries = self.req.execute(self.countrql, args)[0][0] - label = u'%s %s [%s]' % (_(calendar.MONTHNAMES[month-1]), year, nmb_entries) - vtitle = '%s %s' % (_('BlogEntry_plural'), label) - url = html_escape(self.build_url('view', rql=rql, vtitle=vtitle, vid='full_list')) + label = u'%s %s [%s]' % (self.req._(calendar.MONTHNAMES[month-1]), year, + nmb_entries) + vtitle = '%s %s' % (self.req._('BlogEntry_plural'), label) + url = html_escape(self.build_url('view', rql=rql, vtitle=vtitle, + vid='full_list')) link = u'<a href="%s" title="">%s</a>' % (url, label) items.append( u'<li class="">%s</li>\n' % link ) @@ -149,7 +151,7 @@ rqlst = rset.syntax_tree() rqlst.set_limit(None) rql = rqlst.as_string(kwargs=rset.args) # en gros... - url = self.build_url('view', vid='boxListing', rql=rql, page_size=10) + url = self.build_url('view', vid='full_list', rql=rql, page_size=10) box.append(BoxLink(url, u'[%s]' % self.req._(u'see more'))) rss_icon = self.req.external_resource('RSS_LOGO_16') # FIXME - could use rss_url defined as a property if available