Sha256: 47c0aa3cf5892d3fca0a9479b45594f980976e2fd46cd6d7e5b998b084d58ea7

Contents?: true

Size: 543 Bytes

Versions: 46

Compression:

Stored size: 543 Bytes

Contents

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

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

        <% if item[:link].present? && !last %>
          <%= 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

46 entries across 46 versions & 1 rubygems

Version Path
udongo-7.9.0 app/views/backend/_breadcrumbs.html.erb
udongo-7.8.1 app/views/backend/_breadcrumbs.html.erb
udongo-7.8.0 app/views/backend/_breadcrumbs.html.erb
udongo-7.7.2 app/views/backend/_breadcrumbs.html.erb
udongo-7.7.1 app/views/backend/_breadcrumbs.html.erb
udongo-7.7.0 app/views/backend/_breadcrumbs.html.erb
udongo-7.6.2 app/views/backend/_breadcrumbs.html.erb
udongo-7.6.1 app/views/backend/_breadcrumbs.html.erb
udongo-7.6.0 app/views/backend/_breadcrumbs.html.erb
udongo-7.5.1 app/views/backend/_breadcrumbs.html.erb
udongo-7.5.0 app/views/backend/_breadcrumbs.html.erb
udongo-7.4.2 app/views/backend/_breadcrumbs.html.erb
udongo-7.4.1 app/views/backend/_breadcrumbs.html.erb
udongo-7.4.0 app/views/backend/_breadcrumbs.html.erb
udongo-7.3.5 app/views/backend/_breadcrumbs.html.erb
udongo-7.3.4 app/views/backend/_breadcrumbs.html.erb
udongo-7.3.3 app/views/backend/_breadcrumbs.html.erb
udongo-7.3.2 app/views/backend/_breadcrumbs.html.erb
udongo-7.3.1 app/views/backend/_breadcrumbs.html.erb
udongo-7.2.1 app/views/backend/_breadcrumbs.html.erb