Sha256: b41ec785151fe345645f266b6b535cea045ed890472638d225628f1567ff9c09

Contents?: true

Size: 1.55 KB

Versions: 63

Compression:

Stored size: 1.55 KB

Contents

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

  <% 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 }) %>
      <% if component_settings.display_progress_enabled? %>
        <span class="percentage"><%= display_percentage progress_calculator(current_scope, category.parent_id) %></span>
      <% end %>
    </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 }) %>
      <% if component_settings.display_progress_enabled? %>
        <span class="percentage"><%= display_percentage progress_calculator(current_scope, category.id) %></span>
      <% end %>
    </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 }) %>
      <% if component_settings.display_progress_enabled? %>
        <span class="percentage"><%= display_percentage result.parent.progress %></span>
      <% end %>
    </div>
  <% end %>

</div>

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
decidim-accountability-0.26.10 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.9 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.8 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.7 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.5 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.4 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.0 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.0.rc2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.26.0.rc1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.0 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.0.rc4 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.0.rc3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.0.rc2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.25.0.rc1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.24.3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb