Sha256: 5038fedc908269b84bd134932c1921fbb26800397f5e7685f2df84b236eab455

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

<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 app/views/breadcrumble/data_vocabulary/_breadcrumb.html.erb
breadcrumble-4.3.1 app/views/breadcrumble/data_vocabulary/_breadcrumb.html.erb
breadcrumble-4.3.0 app/views/breadcrumble/data_vocabulary/_breadcrumb.html.erb
breadcrumble-4.2.1 app/views/breadcrumble/_breadcrumb.html.erb