Skip to content
Snippets Groups Projects
Commit 1837cce77178 authored by Laure Bourgois's avatar Laure Bourgois
Browse files

BlogEntryListView has now klass parameter that is invisible by default....

BlogEntryListView has now klass parameter that is invisible by default. BlogEntryListView's klass value is passed to call function. This fix is done to render adequat apparence for similarity box.
parent 60a75f90acbb
No related branches found
No related tags found
No related merge requests found
......@@ -235,7 +235,7 @@
class BlogEntryListView(baseviews.ListView):
accepts = ('BlogEntry',)
def call(self, klass=None, title=None, **kwargs):
def call(self, klass='invisible', title=None, **kwargs):
"""display a list of entities by calling their <item_vid> view
"""
entity = self.entity(0,0)
......@@ -244,7 +244,7 @@
# the original list view...
if title is None and not ('vtitle' in self.req.form or 'subvid' in kwargs):
self.w(u'<h1>%s</h1>' % display_name(self.req, 'BlogEntry', form='plural'))
super(BlogEntryListView, self).call(klass='invisible', **kwargs)
super(BlogEntryListView, self).call(klass=klass, **kwargs)
class BlogEntryListItemView(baseviews.ListItemView):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment