bug affichage menus

This commit is contained in:
Nicolas Bally 2011-07-01 11:43:47 +02:00
parent 0677361faa
commit 3931395364

View File

@ -7,11 +7,12 @@
%h3= link_to "Dossiers", "/pages/dossiers.html" %h3= link_to "Dossiers", "/pages/dossiers.html"
%ul %ul
-Folder.where(:enabled => true).order(:title).each do |folder| -Folder.where(:enabled => true).order(:title).each do |folder|
=link_to folder.title, folder_path(:slug => folder.slug) %li
-if folder == @folder =link_to folder.title, folder_path(:slug => folder.slug)
%ul -if folder == @folder
-@folder.articles.each do |article| %ul
%li=link_to article.title, article_path(:folder_slug => folder.slug, :slug => article.slug) -@folder.articles.each do |article|
%li=link_to article.title, article_path(:folder_slug => folder.slug, :slug => article.slug)
#content #content
#breadcrumb #breadcrumb
=link_to "Accueil", "/" =link_to "Accueil", "/"