Fix problem in breadcrumps, when no "Home"-page exists.
This commit is contained in:
parent
6866c4eada
commit
004ce464c1
6 changed files with 21 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
.wiki_new
|
||||
#breadcrump
|
||||
= link_to_wikipage(Page.find_by_permalink("Home"), "Foodcoop-Wiki")
|
||||
= link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki")
|
||||
- parent_page = Page.find_by_permalink(params[:parent])
|
||||
- if parent_page != nil
|
||||
- for page in parent_page.ancestors.reverse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue