Sha256: 17f609697155694aa3ad5d42c65788fdf45324c2cb536d58f47ce13971ea84fd

Contents?: true

Size: 1.57 KB

Versions: 19

Compression:

Stored size: 1.57 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: { with_category: category.parent_id, with_scope: 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: { with_category: category.id, with_scope: 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: { with_category: current_scope }) %>
      <% if component_settings.display_progress_enabled? %>
        <span class="percentage"><%= display_percentage result.parent.progress %></span>
      <% end %>
    </div>
  <% end %>

</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-accountability-0.28.4 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.9 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.28.3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.8 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.28.2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.7 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.28.1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.6 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.28.0 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.5 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.28.0.rc5 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.28.0.rc4 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.4 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.3 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.0 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.0.rc2 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb
decidim-accountability-0.27.0.rc1 app/views/decidim/accountability/results/_nav_breadcrumb.html.erb