Sha256: 83e7994df9b11605200eb9d6e61a6f0c1bc7c2e5f14b5b4d73100b593cffb815

Contents?: true

Size: 1.17 KB

Versions: 38

Compression:

Stored size: 1.17 KB

Contents

<ul class="breadcrumb main_breadcrumb">
  <li>
    <%= ajax_link_to t('itl-gem.main_page'), "/" %>
    <% if !breadcrumb.blank? %>
        <span class="divider">/</span>
    <% end %>
  </li>
  <% if !breadcrumb.blank? && breadcrumb.kind_of?(Array) %>
      <% breadcrumb.each_with_index do |b, i| %>
          <% if is_tree_node?(b) %>
              <% if breadcrumb.count - 1 == i %>
                  <li class="active"><%= b.name %></li>
              <% else %>
                  <li>
                    <%= link_to b.name, convert_settings_to_url(b.to_json), :onclick => "load_page(#{b.to_json}); return false;" %>
                    <span class="divider">/</span>
                  </li>
              <% end %>
          <% elsif b.kind_of?(Hash) %>
              <% if breadcrumb.count - 1 == i %>
                  <li class="active"><%= b[:name] %></li>
              <% else %>
                  <li>
                    <%= link_to b[:name], convert_settings_to_url(b.to_json), :onclick => "load_page(#{b.to_json}); return false;" %>
                    <span class="divider">/</span>
                  </li>
              <% end %>
          <% end %>
      <% end %>
  <% end %>
</ul>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
it-logica-application-backbone-1.5.3 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.5.2 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.5.1 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.5.0 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.12 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.11 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.10 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.9 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.8 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.7 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.6 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.5 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.4 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.3 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.4.2 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.3.24 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.3.23 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.3.22 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.3.20 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-1.3.19 app/views/helpers/_build_breadcrumb.html.erb