Sha256: a99a50712611de08cbd4bc330d8301e762455259e7c887414ae44ff1c5b4b22f

Contents?: true

Size: 952 Bytes

Versions: 13

Compression:

Stored size: 952 Bytes

Contents

<%
  add_gem_component_stylesheet("panel")

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

  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
  component_helper.add_class("gem-c-panel govuk-panel govuk-panel--confirmation")
%>
<%= tag.div(**component_helper.all_attributes) do %>
  <%= 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 %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-46.4.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-46.3.1 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-46.3.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-46.2.0 app/views/govuk_publishing_components/components/_panel.html.erb
govuk_publishing_components-46.1.0 app/views/govuk_publishing_components/components/_panel.html.erb