Method: Quby::AnswersHelper#light_dark_for

Defined in:
app/helpers/quby/answers_helper.rb

#light_dark_for(cyclei, same_question) ⇒ Object



44
45
46
47
48
49
50
51
52
# File 'app/helpers/quby/answers_helper.rb', line 44

def light_dark_for(cyclei, same_question)
  if same_question
    return ""
  elsif cyclei.modulo(2) == 0
    return "light"
  else
    return "dark"
  end
end