Sha256: fe822dd2c200d885f5e53a0fa7016171038238ace664d312679ed0c9e297f3a4
Contents?: true
Size: 574 Bytes
Versions: 44
Compression:
Stored size: 574 Bytes
Contents
# frozen_string_literal: true module Decidim module Elections module Admin # Custom helpers for election steps on admin dashboard. # module StepsHelper 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 end end end end
Version data entries
44 entries across 44 versions & 1 rubygems