Sha256: 2c1adca2c066fffe07cf9328c12d123179d91dfd4e6ff317b463217cb7361b1d

Contents?: true

Size: 1.39 KB

Versions: 6

Compression:

Stored size: 1.39 KB

Contents

<div>
  <%= link_to t(".global"), root_path %>
  <% if component_settings.display_progress_enabled? %>
    <span><%= display_percentage progress_calculator(current_scope, nil) %></span>
  <% end %>

  <% if category.present? && category.parent.present? %>
    <span>&gt;</span>
    <div>
      <%= link_to translated_attribute(category.parent.name), results_path(filter: { with_category: category.parent_id, with_scope: current_scope }) %>
      <% if component_settings.display_progress_enabled? %>
        <span><%= display_percentage progress_calculator(current_scope, category.parent_id) %></span>
      <% end %>
    </div>
  <% end %>

  <% if category.present? %>
    <span>&gt;</span>
    <div>
      <%= link_to translated_attribute(category.name), results_path(filter: { with_category: category.id, with_scope: current_scope }) %>
      <% if component_settings.display_progress_enabled? %>
        <span><%= display_percentage progress_calculator(current_scope, category.id) %></span>
      <% end %>
    </div>
  <% end %>

  <% if result && result.parent.present? %>
    <span>&gt;</span>
    <div>
      <%= link_to translated_attribute(result.parent.title), result_path(result.parent, filter: { with_category: current_scope }) %>
      <% if component_settings.display_progress_enabled? %>
        <span><%= display_percentage result.parent.progress %></span>
      <% end %>
    </div>
  <% end %>

</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.29.0 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.29.0.rc4 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.29.0.rc3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.29.0.rc2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.29.0.rc1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb