Sha256: 51d0e41a138ce55404a24ccfc65a9a93494d83fd8e11e63d64ac17260e00ff66

Contents?: true

Size: 470 Bytes

Versions: 7

Compression:

Stored size: 470 Bytes

Contents

<% if breadcrumb.any? %>
  <ol class="breadcrumb">
    <li><%= link_to icon(:home), backend_path %></li>

    <% breadcrumb.each do |item| %>
      <% klass = (item == breadcrumb.all.last) ? 'active' : '' %>
      <li class="<%= klass %>">

        <% if item[:link].present? %>
          <%= link_to item[:name].to_s.html_safe, item[:link] %>
        <% else %>
          <%= item[:name].to_s.html_safe %>
        <% end %>

      </li>
    <% end %>
  </ol>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
udongo-2.0.0 app/views/backend/_breadcrumbs.html.erb
udongo-1.0.4 app/views/backend/_breadcrumbs.html.erb
udongo-1.0.3 app/views/backend/_breadcrumbs.html.erb
udongo-1.0.2 app/views/backend/_breadcrumbs.html.erb
udongo-1.0.1 app/views/backend/_breadcrumbs.html.erb
udongo-1.0.0 app/views/backend/_breadcrumbs.html.erb
udongo-0.1.0 app/views/backend/_breadcrumbs.html.erb