Sha256: cce735f4adc80ba0c4d277b7310730246e3256d5fdd9046ed4e2040dab5521c2

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

test breadcrumb theme
<div>
  <% breadcrumbs.each_with_index do |crumb, i| %>
    <%= '>' unless i == 0 %>
    <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
      <% span_title = content_tag(:span, crumb[:name], itemprop: "title") %>
      <% if crumb[:url] == nil %>
        <%= span_title %>
      <% else %>
        <%= link_to_unless_current span_title, crumb[:url], itemprop: "url" %>
      <% end %>
    </span>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
breadcrumble-5.0.0 spec/dummy/app/views/breadcrumble/test/_breadcrumb.html.erb
breadcrumble-4.3.1 spec/dummy/app/views/breadcrumble/test/_breadcrumb.html.erb
breadcrumble-4.3.0 spec/dummy/app/views/breadcrumble/test/_breadcrumb.html.erb
breadcrumble-4.2.1 spec/dummy/app/views/breadcrumble/test/_breadcrumb.html.erb