Sha256: 873e7fa111cee629974cb22cc144447ec46f3ea1c336bca34e1f7eeeea048467
Contents?: true
Size: 1.18 KB
Versions: 131
Compression:
Stored size: 1.18 KB
Contents
<% inverse ||= false 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 classes << "gem-c-govspeak--inverse" if inverse %> <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
131 entries across 131 versions & 1 rubygems