Sha256: 9800eba0c68e0689e84e9d93a73896c2854e167ec4dcceaa1c0e368dd07dc319

Contents?: true

Size: 1.15 KB

Versions: 62

Compression:

Stored size: 1.15 KB

Contents

<ul class="breadcrumb">
  <li>
    <%= ajax_link_to "Úvodní stránka", "/" %>
    <% 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

62 entries across 62 versions & 1 rubygems

Version Path
it-logica-application-backbone-0.2.30 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.29 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.28 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.27 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.26 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.25 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.24 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.23 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.22 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.21 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.20 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.19 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.18 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.17 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.15 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.14 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.13 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.12 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.11 app/views/helpers/_build_breadcrumb.html.erb
it-logica-application-backbone-0.2.10 app/views/helpers/_build_breadcrumb.html.erb