Sha256: 62b9da1fd17677b3226dfaf28982fd3f4abd0b9bb35898b83a17b98c96ee281f
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
<% breadcrumbs ||= [] inverse ||= false invert_class = inverse ? "gem-c-breadcrumbs--inverse" : "" breadcrumb_presenter = GovukPublishingComponents::Presenters::Breadcrumbs.new(breadcrumbs) %> <script type="application/ld+json"> <%= raw breadcrumb_presenter.structured_data.to_json %> </script> <div class="gem-c-breadcrumbs govuk-breadcrumbs <%= invert_class %>" data-module="track-click"> <ol class="govuk-breadcrumbs__list"> <% breadcrumbs.each_with_index do |crumb, index| %> <% breadcrumb = GovukPublishingComponents::Presenters::Breadcrumb.new(crumb, index) %> <li class="govuk-breadcrumbs__list-item" aria-current="<%= breadcrumb.aria_current %>"> <% if breadcrumb.is_link? %> <%= link_to( breadcrumb[:title], breadcrumb.path, data: breadcrumb.tracking_data(breadcrumbs.length), class: "govuk-breadcrumbs__link", aria: { current: breadcrumb.aria_current, } ) %> <% else %> <%= breadcrumb[:title] %> <% end %> </li> <% end %> </ol> </div>
Version data entries
4 entries across 4 versions & 1 rubygems