Sha256: 3a97ce7d1eb3dc645b9eaf6f5e81bae9f049338a7bdbdb41bfdb1fb4f9af120e
Contents?: true
Size: 1.11 KB
Versions: 82
Compression:
Stored size: 1.11 KB
Contents
<% direction_class = "direction-#{direction}" if local_assigns.include?(:direction) disable_youtube_expansions = local_assigns.fetch(:disable_youtube_expansions) if local_assigns.include?(:disable_youtube_expansions) classes = [] classes << direction_class if direction_class classes << "disable-youtube" if disable_youtube_expansions %> <div class="gem-c-govspeak govuk-govspeak <%= classes.join(" ") %>" data-module="govspeak"> <% if local_assigns.include?(:content) %> <% if content.html_safe? %> <%= content %> <% else %> <% raise " You've passed in unsanitised HTML into the Govspeak component as the `content` parameter. To fix this use a `do` block with the sanitize method - see https://components.publishing.service.gov.uk/component-guide/govspeak/ for the updated documentation and https://github.com/alphagov/govuk_publishing_components/pull/1632/ for further examples. Called from #{caller_locations.find { |l| l.to_s.include?('.erb') }} " %> <% end %> <% elsif block_given? %> <%= yield %> <% end %> </div>
Version data entries
82 entries across 82 versions & 1 rubygems