From fd361090b4da9baee1bfda64156be0ae83698ebd Mon Sep 17 00:00:00 2001 From: benni Date: Thu, 18 Oct 2012 23:43:31 +0200 Subject: [PATCH] Nice breadcrumb --- app/views/pages/show.html.haml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/pages/show.html.haml b/app/views/pages/show.html.haml index 19deeae4..f9ff5c67 100644 --- a/app/views/pages/show.html.haml +++ b/app/views/pages/show.html.haml @@ -27,13 +27,15 @@ - @page.children.each do |page| %li= link_to_wikipage(page) -#breadcrump - = link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki") +%ul.breadcrumb + %li + = link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki") + %span.divider / - for page in @page.ancestors.reverse - %span.wikiSeparator > - = link_to_wikipage(page) - %span.wikiSeparator > - = @page.title + %li + = link_to_wikipage(page) + %span.divider / + %li.active= @page.title #wikiContent