diff --git a/app/views/public/articles/show.html.haml b/app/views/public/articles/show.html.haml index a594a26..b3c83fd 100644 --- a/app/views/public/articles/show.html.haml +++ b/app/views/public/articles/show.html.haml @@ -7,11 +7,12 @@ %h3= link_to "Dossiers", "/pages/dossiers.html" %ul -Folder.where(:enabled => true).order(:title).each do |folder| - =link_to folder.title, folder_path(:slug => folder.slug) - -if folder == @folder - %ul - -@folder.articles.each do |article| - %li=link_to article.title, article_path(:folder_slug => folder.slug, :slug => article.slug) + %li + =link_to folder.title, folder_path(:slug => folder.slug) + -if folder == @folder + %ul + -@folder.articles.each do |article| + %li=link_to article.title, article_path(:folder_slug => folder.slug, :slug => article.slug) #content #breadcrumb =link_to "Accueil", "/"