Sha256: c8e34c0894117d441e9a75d0694ba3f56b65c4e8080b16d557adbfa7aa3d0910

Contents?: true

Size: 723 Bytes

Versions: 69

Compression:

Stored size: 723 Bytes

Contents

<%
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)

  open ||= nil
  margin_bottom ||= 3
  css_classes = %w(gem-c-details govuk-details)
  css_classes << shared_helper.get_margin_bottom

  details_data_attributes = {}
  details_data_attributes[:module] = 'govuk-details gem-details'

  data_attributes ||= {}
  data_attributes[:details_track_click] = ''
%>
<%= tag.details class: css_classes, data: details_data_attributes, open: open do %>
  <%= tag.summary class: "govuk-details__summary", data: data_attributes do %>
    <span class="govuk-details__summary-text">
      <%= title %>
    </span>
  <% end %>
  <div class="govuk-details__text">
    <%= yield %>
  </div>
<% end %>

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
govuk_publishing_components-34.7.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.7.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.6.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.5.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.5.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.4.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.4.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.4.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.3.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.2.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.1.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.1.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.1.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.1.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-34.0.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-33.1.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-33.0.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-32.1.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-32.0.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-31.2.0 app/views/govuk_publishing_components/components/_details.html.erb