From 4ad1745d7d216872e95762bca0214fe3dda48623 Mon Sep 17 00:00:00 2001 From: Arthur Del Esposte Date: Sun, 27 Jul 2014 17:46:17 +0000 Subject: [PATCH] Fixing article parents html links in cms view --- app/views/cms/view.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/cms/view.html.erb b/app/views/cms/view.html.erb index adba5fa..12a8597 100644 --- a/app/views/cms/view.html.erb +++ b/app/views/cms/view.html.erb @@ -25,7 +25,9 @@
<%= _('Current folder: ') %> <%= link_to profile.identifier, :action => 'index' %> - <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.slug, :id => item.id)) } %> + <% @article.hierarchy.each do |item| %> + <%= " / " + ((item == @article) ? item.name.html_safe : link_to(item.slug, :id => item.id).html_safe) %> + <% end %>
<% end %> -- libgit2 0.21.2