Sha256: 8b05b62744b791de35749b95c9b760ea58e1735daac2a7bc9ce03e1d09304c27

Contents?: true

Size: 1000 Bytes

Versions: 323

Compression:

Stored size: 1000 Bytes

Contents

<%
  highlight_box ||= false
  document_list ||= false
  image_cards ||= false

  highlight_box.merge!({within_multitype_list: true}) if highlight_box
  document_list.merge!({within_multitype_list: true}) if document_list

  taxonomy_list_helper = GovukPublishingComponents::Presenters::TaxonomyListHelper.new(image_cards)
%>
<% if highlight_box || document_list || image_cards %>
  <ul class="gem-c-taxonomy-list" data-module="track-click">
    <% if image_cards %>
      <% taxonomy_list_helper.image_card_data.each do |image_card| %>
        <li class="gem-c-taxonomy-list__item">
          <%= render "govuk_publishing_components/components/image_card", image_card %>
        </li>
      <% end %>
    <% end %>

    <% if highlight_box %>
      <%= render "govuk_publishing_components/components/highlight_boxes", highlight_box %>
    <% end %>

    <% if document_list %>
      <%= render "govuk_publishing_components/components/document_list", document_list %>
    <% end %>
  </ul>
<% end %>

Version data entries

323 entries across 323 versions & 1 rubygems

Version Path
govuk_publishing_components-24.3.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-24.2.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-24.1.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-24.1.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-24.0.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.15.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.14.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.13.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.13.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.12.3 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.12.2 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.12.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.12.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.11.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.11.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.10.2 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.10.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.10.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.9.2 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-23.9.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb