From 214de13e6129dfd96f816f1e0d4f3699bcaddcdb Mon Sep 17 00:00:00 2001 From: moveson Date: Tue, 26 Nov 2024 22:26:54 -0700 Subject: [PATCH] Added new historical fact kinds to the badge helper --- app/helpers/badge_helper.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/helpers/badge_helper.rb b/app/helpers/badge_helper.rb index c837f26fc..1b31ef127 100644 --- a/app/helpers/badge_helper.rb +++ b/app/helpers/badge_helper.rb @@ -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