Sha256: 5a23850e1fe94144c06454e56cec3c851360e2517c24a7844328f4172d695d27
Contents?: true
Size: 1.82 KB
Versions: 5
Compression:
Stored size: 1.82 KB
Contents
<% if participatory_process.steps.any? %> <div class="columns mediumlarge-4"> <div class="process-header__phase"> <div class="process-header__progress"> <ol> <% past_step = true %> <% participatory_process.steps.each_with_index do |step, index| %> <% if past_step %> <li class="phase-item--past"><span></span></li> <% else %> <li><span></span></li> <% end %> <% past_step = false if step.active? %> <% end %> </ol> <span class="phase-current"><%= t(".step", current: (participatory_process.active_step.position + 1), total: current_participatory_space.steps.count) %></span> </div> <div> <span class="phase-title"><%= translated_attribute participatory_process.active_step.title %></span> <span class="phase-date"> <%= participatory_space_helpers.step_dates participatory_process.active_step %> </span> </div> <% cta_text = translated_attribute(participatory_process.active_step.cta_text) %> <% if participatory_process.active_step.cta_path.present? && cta_text.present? %> <%= link_to t(".view_steps"), decidim_participatory_processes.participatory_process_participatory_process_steps_path(current_participatory_space) %> <%= link_to( cta_text, decidim_participatory_processes.participatory_process_path(participatory_process) + "/" + participatory_process.active_step.cta_path, class: "button small button--sc show-for-medium" ) %> <% else %> <%= link_to t(".view_steps"), decidim_participatory_processes.participatory_process_participatory_process_steps_path(current_participatory_space), class: "button small button--sc show-for-medium" %> <% end %> </div> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems