Add Overall Response Rate Popover

This commit is contained in:
Gabe Farrell 2023-05-31 18:27:15 +00:00
parent 2a3f69b813
commit 960fcd570c
2 changed files with 12 additions and 2 deletions

View file

@ -23,6 +23,10 @@ class ResponseRatePresenter
percentage > 75 ? 'purple' : 'gold'
end
def hover_message
"Percentages based on #{ actual_count } out of #{ respondents_count.round } #{ focus }s completing at least 25% of the survey."
end
private
def cap_at_100(value)