Sha256: 4895741956b7f2b05c3c93c99db894465be27bcdf5b7c393f690af0bfdf5fbcc
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
<% if buoys.any? %> <ol itemscope itemtype='http://schema.org/BreadcrumbList' class='breadcrumb'> <% buoys.each.with_index(1) do |link, i| %> <li itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <%# if `link.current?` is true, link.options includes {class: 'current'}. %> <% if link.current? %> <span itemprop='name'><%= link.text %></span> <meta itemprop='position' content='<%= i %>' /> <% else %> <%= link_to link.url, link.options.merge(itemprop: :item) do %> <span itemprop='name'><%= link.text %></span> <% end %> <meta itemprop='position' content='<%= i %>' /> <% end %> </li> <% end %> </ol> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems