Sha256: be64e163b14b963ff767847a8b29a0d104b2ca76ee21356e315dcd35486aff10

Contents?: true

Size: 776 Bytes

Versions: 133

Compression:

Stored size: 776 Bytes

Contents

<%
  add_gem_component_stylesheet("panel")

  description ||= false
  prepend ||= false
  append ||= false

  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
%>
<div class="gem-c-panel govuk-panel govuk-panel--confirmation">
  <%= content_tag(shared_helper.get_heading_level, class: "govuk-panel__title") do %>
    <% if prepend %>
      <span class="gem-c-panel__prepend">
        <%= prepend %>
      </span>
    <% end %>
    <span class="govuk-panel__title-text">
      <%= title %>
    </span>
    <% if append %>
      <span class="gem-c-panel__append">
        <%= append %>
      </span>
    <% end %>
  <% end %>

  <% if description %>
    <div class="govuk-panel__body">
      <%= description %>
    </div>
  <% end %>
</div>

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
govuk_publishing_components-46.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.10.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.9.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.8.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.7.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.6.1 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.6.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.5.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.4.1 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.4.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.3.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.2.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.1.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-45.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-44.11.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-44.10.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-44.9.1 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-44.9.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-44.8.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-44.7.1 app/views/govuk_publishing_components/components/_panel.html.erb