Sha256: 7b6c2da0a35ad261eb3cd007477c842e9657652a1ed236ccf962d49edca8c9fb

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

<div>
  <% breadcrumb_trails.each do |trail| %>
    <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
      <% span_title = content_tag(:span, trail[0][:name], itemprop: "title") %>
      <% if trail[0][:url] == nil %>
        <%= span_title %>
      <% else %>
        <%= link_to_unless_current span_title, trail[0][:url], itemprop: "url" %>
      <% end %>
      <% if trail.size > 1 %>
        ><%= render partial: 'breadcrumble/breadcrumb_trail', locals: { trail: trail.drop(1) } %>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
breadcrumble-3.0.4 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-3.0.3 app/views/breadcrumble/_breadcrumb_trails.html.erb