Fix problem in breadcrumps, when no "Home"-page exists.

This commit is contained in:
sandoz 2009-08-19 22:59:53 +02:00
parent 6866c4eada
commit 004ce464c1
6 changed files with 21 additions and 5 deletions

View file

@ -3,7 +3,7 @@
.wiki_show
#breadcrump
= link_to_wikipage(Page.find_by_permalink("Home"), "Foodcoop-Wiki")
= link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki")
- for page in @page.ancestors.reverse
%span.wikiSeparator >
= link_to_wikipage(page)