Sha256: 617e53448194a28a0c10dc24ccdcac72c73e7a2e2157b2da55267831f8ca7eae

Contents?: true

Size: 973 Bytes

Versions: 32

Compression:

Stored size: 973 Bytes

Contents

<% if defined?(title) %>
  <%
    description_text ||= false
    description_govspeak ||= false
    description ||= yield || false
    margin_bottom_class = " gem-c-notice--bottom-margin" unless local_assigns[:margin_bottom]
    description_present = description.present? || description_text.present? || description_govspeak.present?
  %>
  <section class="gem-c-notice<%= margin_bottom_class %>" aria-label="Notice" role="region">
    <% if description_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 %>
      <%= description %>
    <% end %>

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
govuk_publishing_components-16.23.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.22.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.21.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.20.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.20.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.19.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.18.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.17.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.16.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.15.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.14.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.14.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.13.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.12.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.11.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.10.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.10.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.9.2 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.9.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-16.9.0 app/views/govuk_publishing_components/components/_notice.html.erb