Sha256: 5d281b18bd6c5f4785ded06a7dc0a534a2dea289893c25688a50f67dcdd277d0

Contents?: true

Size: 552 Bytes

Versions: 7

Compression:

Stored size: 552 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 %>
        &gt;<%= render partial: 'breadcrumble/breadcrumb_trail', locals: { trail: trail.drop(1) } %>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
breadcrumble-4.2.1 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-4.2.0 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-4.1.0 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-4.0.0 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-3.0.7 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-3.0.6 app/views/breadcrumble/_breadcrumb_trails.html.erb
breadcrumble-3.0.5 app/views/breadcrumble/_breadcrumb_trails.html.erb