don't display breadcrumb when there is only one element

This commit is contained in:
Frédéric Péters 2006-10-15 14:07:58 +00:00
parent c2ffbce005
commit 930d99901e
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ def decorate(body, response):
body = '\n'.join((section_title, page_title, body))
if hasattr(response, 'breadcrumb') and response.breadcrumb:
if len(response.breadcrumb) == 1:
response.breadcrumb = None
return wcs_decorate(body, response)
template.decorate = decorate