Add highlights to all champs

This commit is contained in:
gregoirenovel 2018-12-28 16:08:38 +01:00
parent 20ea577a66
commit 004cdd4c43

View file

@ -10,6 +10,7 @@
%th.libelle
= "#{c.libelle} :"
%td.rich-text
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
- if c.to_s.present?
%ul
- c.to_s.split(", ").each do |item|
@ -19,6 +20,7 @@
%th.libelle
= "#{c.libelle} :"
%td.rich-text
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
- dossier = Dossier.includes(:procedure).find_by(id: c.to_s)
- if dossier
- path = dossier_linked_path(current_gestionnaire, dossier)
@ -34,6 +36,7 @@
%th.libelle
= "#{c.libelle} :"
%td.rich-text
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
- pj = c.piece_justificative_file
- if pj.attached?
= render partial: "shared/champs/piece_justificative/pj_link", locals: { champ: c, user_can_upload: false }