Skip to content
Snippets Groups Projects
Unverified Commit 06fe2c52 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent e25f7bd4
No related branches found
No related tags found
No related merge requests found
...@@ -9,17 +9,17 @@ partial = "admin/communication/medias/contexts/#{key}" ...@@ -9,17 +9,17 @@ partial = "admin/communication/medias/contexts/#{key}"
<% rescue %> <% rescue %>
<% <%
object = context.about object = context.about
next if object.nil? if object.present?
# If it's a localization, get real object # If it's a localization, get real object
if object.respond_to?(:about) if object.respond_to?(:about)
object = object.about object = object.about
end end
begin begin
# TODO fix special pages # TODO fix special pages
title = osuny_link_localized object, [:admin, object], classes: "stretched-link" title = osuny_link_localized object, [:admin, object], classes: "stretched-link"
rescue rescue
title = object.to_s_in(current_language) title = object.to_s_in(current_language)
end end
%> %>
<div> <div>
<div class="<%= osuny_card_classes(horizontal: true) %>"> <div class="<%= osuny_card_classes(horizontal: true) %>">
......
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