Sha256: aeb0c3ddc65941af3aa11c651ddc8350c7858f83f3ce0205e2f9f57d4c2f7ee9

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

<div class="lines-breadcrumb">
  <%= link_to t(".global"), root_path %>
  <span class="percentage"><%= display_percentage progress_calculator(current_scope, nil) %></span>

  <% if category.present? && category.parent.present? %>
    <span class="breadcrumb--separator">></span>
    <div>
      <%= link_to translated_attribute(category.parent.name), results_path(filter: { category_id: category.parent_id, scope_id: current_scope }) %>
      <span class="percentage"><%= display_percentage progress_calculator(current_scope, category.parent_id) %></span>
    </div>
  <% end %>

  <% if category.present? %>
    <span class="breadcrumb--separator">></span>
    <div>
      <%= link_to translated_attribute(category.name), results_path(filter: { category_id: category.id, scope_id: current_scope }) %>
      <span class="percentage"><%= display_percentage progress_calculator(current_scope, category.id) %></span>
    </div>
  <% end %>

  <% if result && result.parent.present? %>
    <span class="breadcrumb--separator">></span>
    <div>
      <%= link_to translated_attribute(result.parent.title), result_path(result.parent, filter: { scope_id: current_scope }) %>
      <span class="percentage"><%= display_percentage result.parent.progress %></span>
    </div>
  <% end %>

</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-accountability-0.9.3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.9.2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.9.1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.9.0 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb