Commit 4ad1745d7d216872e95762bca0214fe3dda48623
1 parent
bc1632a9
Exists in
master
and in
29 other branches
Fixing article parents html links in cms view
(ActionItem3236)
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/views/cms/view.html.erb
@@ -25,7 +25,9 @@ | @@ -25,7 +25,9 @@ | ||
25 | <div id='article-full-path'> | 25 | <div id='article-full-path'> |
26 | <strong><%= _('Current folder: ') %></strong> | 26 | <strong><%= _('Current folder: ') %></strong> |
27 | <%= link_to profile.identifier, :action => 'index' %> | 27 | <%= link_to profile.identifier, :action => 'index' %> |
28 | - <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.slug, :id => item.id)) } %> | 28 | + <% @article.hierarchy.each do |item| %> |
29 | + <%= " / " + ((item == @article) ? item.name.html_safe : link_to(item.slug, :id => item.id).html_safe) %> | ||
30 | + <% end %> | ||
29 | </div> | 31 | </div> |
30 | <% end %> | 32 | <% end %> |
31 | 33 |