Skip to content
Snippets Groups Projects
Unverified Commit 4ebb0edb authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #746 from noesya/fix/menu-item-about

Correction du lien vers un about (STI) dans le show d'un item de menu
parents 8eef8ff3 f2afaab5
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
<p><%= link_to @item.url, @item.url, target: '_blank' unless @item.url.blank? %></p>
<% elsif @item.has_about? %>
<h3 class="h5"><%= Communication::Website::Menu::Item.human_attribute_name('about') %></h3>
<p><%= link_to_if can?(:read, @item.about), @item.about, [:admin, @item.about] %></p>
<p><%= link_to_if can?(:read, @item.about), @item.about, [:admin, @item.about.becomes(@item.about.class.base_class)] %></p>
<% end %>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment