Skip to content
Snippets Groups Projects
Commit 56546a42 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 7959fe07 6a88722c
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ class Communication::Block::Template::Embed < Communication::Block::Template::Ba
def check_accessibility
super
accessibility_error 'accessibility.blocks.templates.embed.title_missing' if has_iframe_without_title?
accessibility_error 'accessibility.blocks.templates.embed.title_missing' if iframe_without_title?
accessibility_error 'accessibility.blocks.templates.embed.transcription_missing' if has_iframe? && transcription.blank?
end
......@@ -15,7 +15,7 @@ class Communication::Block::Template::Embed < Communication::Block::Template::Ba
!nokogiri.xpath("//iframe").empty?
end
def has_iframe_without_title?
def iframe_without_title?
return false unless has_iframe?
nokogiri.at('iframe').attr('title')
end
......
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