Skip to content

Commit

Permalink
Added new historical fact kinds to the badge helper
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Nov 27, 2024
1 parent 8eb7edf commit 214de13
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/helpers/badge_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ def historical_fact_kind_badge(kind)
title = "Division"
color = :dark
tooltip_text = "Legacy division determination"
when "lottery_application"
title = "LotApp"
color = :success
tooltip_text = "Applied for a lottery"
when "ever_finished"
title = "EverFin"
color = :success
tooltip_text = "Reported if person has any prior finish"
when "dns_since_finish"
title = "DNSSncFin"
color = :success
tooltip_text = "Reported how many DNS since last finish"
else
raise ArgumentError, "Can't build a badge; unknown status: #{kind}"
end
Expand Down

0 comments on commit 214de13

Please sign in to comment.