Sha256: c7bdd7bc8ff4efaea58301b353f261b77b3c316630211bafd04c98b646eef1d4
Contents?: true
Size: 423 Bytes
Versions: 314
Compression:
Stored size: 423 Bytes
Contents
<% id ||= "error-message-#{SecureRandom.hex(4)}" classes ||= '' css_classes = %w( gem-c-error-message govuk-error-message ) css_classes << classes if classes items ||= [] if items.any? errors = items.map { |item| capture { item[:text] } } text = raw(errors.join("<br />")) end %> <%= tag.span id: id, class: css_classes do %> <span class="govuk-visually-hidden">Error:</span> <%= text %> <% end %>
Version data entries
314 entries across 314 versions & 1 rubygems