demarches-normaliennes/app/helpers/dossier_helper.rb
2017-12-15 12:10:54 +01:00

17 lines
347 B
Ruby

module DossierHelper
def button_or_label_class(dossier)
if dossier.accepte?
'accepted'
elsif dossier.without_continuation?
'without-continuation'
elsif dossier.refused?
'refused'
end
end
def highlight_if_unseen_class(seen_at, updated_at)
if seen_at&.<(updated_at)
"highlighted"
end
end
end