Module: Decidim::Elections::Admin::StepsHelper
- Defined in:
- app/helpers/decidim/elections/admin/steps_helper.rb
Overview
Custom helpers for election steps on admin dashboard.
Instance Method Summary collapse
Instance Method Details
#steps(current_step) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/helpers/decidim/elections/admin/steps_helper.rb', line 9 def steps(current_step) step_class = "text-success" (["create_election"] + Decidim::Elections::Election.bb_statuses.keys).map do |step| if step == current_step step_class = "text-muted" [step, "text-warning"] else [step, step_class] end end end |