Sha256: 7b36f93db4eb0f304c2d23c07107fe9f5d68af00b0058a9c05e93735f63c4e9c
Contents?: true
Size: 1.68 KB
Versions: 15
Compression:
Stored size: 1.68 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, step_cta_url(participatory_process), 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) %> <% end %> </div> </div> <% end %>
Version data entries
15 entries across 15 versions & 1 rubygems