Sha256: 890f9c67ed1b852c439b054e5cb6ef4d8bca8e4dea5268e4f83c8c4306d29219

Contents?: true

Size: 811 Bytes

Versions: 44

Compression:

Stored size: 811 Bytes

Contents

<% if defined?(title) %>
  <%
    description_text ||= false
    description_govspeak ||= yield || ""
    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 %>

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
govuk_publishing_components-15.0.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-14.0.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.8.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.8.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.7.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.6.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.6.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.5.4 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.5.3 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.5.2 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.5.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.5.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.4.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.3.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.2.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-13.0.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-12.21.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-12.20.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-12.19.0 app/views/govuk_publishing_components/components/_notice.html.erb