Sha256: 9894ff0ee2e5e1b381497f395cf25ca2c71a2282cb7cfd4546d7a63fe4bdcb50

Contents?: true

Size: 563 Bytes

Versions: 3

Compression:

Stored size: 563 Bytes

Contents

<div itemscope itemtype="http://schema.org/BreadcrumbList">
  <% breadcrumbs.each_with_index do |crumb, i| %>
    <%= '>' unless i == 0 %>
    <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
      <% span_title = content_tag(:span, crumb[:name], itemprop: "name") %>
      <% if crumb[:url] == nil %>
        <%= span_title %>
      <% else %>
        <%= link_to_unless_current span_title, crumb[:url], itemprop: "item" %>
      <% end %>
      <meta itemprop="position" content="<%= i + 1 %>" />
    </span>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
breadcrumble-5.0.0 app/views/breadcrumble/_breadcrumb.html.erb
breadcrumble-4.3.1 app/views/breadcrumble/_breadcrumb.html.erb
breadcrumble-4.3.0 app/views/breadcrumble/_breadcrumb.html.erb