Sha256: ef700b38c39c3ff5f13b17501708972a54576e66aa89192560b94831296ac419

Contents?: true

Size: 803 Bytes

Versions: 39

Compression:

Stored size: 803 Bytes

Contents

<% if defined?(title) %>
  <%
    description_text ||= false
    description_govspeak ||= yield || false
    margin_bottom_class = " gem-c-notice--bottom-margin" unless local_assigns[:margin_bottom]
  %>
  <section class="gem-c-notice<%= margin_bottom_class %>" aria-label="Notice" role="region">
    <% if description_text.present? || description_govspeak.present? %>
      <h2 class="gem-c-notice__title"><%= title %></h2>
    <% else %>
      <span class="gem-c-notice__title"><%= title %></span>
    <% end %>

    <% if description_text %>
      <p class="gem-c-notice__description"><%= description_text %></p>
    <% end %>

    <% if description_govspeak %>
      <%= render 'govuk_publishing_components/components/govspeak', content: description_govspeak %>
    <% end %>
  </section>
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
govuk_publishing_components-11.2.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-11.1.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-11.0.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-10.2.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-10.1.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-10.0.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.28.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.27.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.26.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.26.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.25.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.24.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.23.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.22.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.21.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.20.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.19.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.18.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.17.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.17 app/views/govuk_publishing_components/components/_notice.html.erb