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