Sha256: fb90e4098b073e1078296e05fd2c63c4aae0e88e4d5cf2dfae7b65dfbd39f1c2

Contents?: true

Size: 1.12 KB

Versions: 16

Compression:

Stored size: 1.12 KB

Contents

<%
  warn('DEPRECATION WARNING: taxonomy_list component is deprecated and will be removed in a future major release of govuk_publishing_components')
  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="gem-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

16 entries across 16 versions & 1 rubygems

Version Path
govuk_publishing_components-27.20.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.19.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.18.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.17.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.16.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.15.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.14.2 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.14.1 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.14.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.13.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.12.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.11.0 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.10.5 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.10.4 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.10.3 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb
govuk_publishing_components-27.10.2 app/views/govuk_publishing_components/components/_taxonomy_list.html.erb