app/helpers/competitions_helper.rb
# Apply a Bootstrap label class for each status
Apply a Bootstrap label class for each status
Apply a Bootstrap label class for each status
def bs_class_for_competition_status(competition)
    return 'label-success' if competition.active?
    return 'label-info' if competition.yet_to_begin?
    return 'label-warning' if competition.suspended?
    return 'label-danger' if competition.expired?
  end
def bs_class_for_competition_status ( competition ) return 'label-success' if competition . active? return 'label-info' if competition . yet_to_begin? return 'label-warning' if competition . suspended? return 'label-danger' if competition . expired? end
Apply a Bootstrap label class for each status
Apply a Bootstrap label class for each status
competition
<not_specific>