Merge pull request #5770 from betagouv/explicite-daily-mail-instructeur
rend plus compréhensible le mail quotidien des nouveautés
This commit is contained in:
commit
c2edf0cc72
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,8 @@
|
|||
Bonjour,
|
||||
|
||||
%p
|
||||
Vous avez du nouveau sur #{APPLICATION_NAME}.
|
||||
Vous avez du nouveau sur #{APPLICATION_NAME} depuis
|
||||
= Date.today.monday? ? "vendredi dernier" : "hier"
|
||||
|
||||
%ul
|
||||
- @data.each do |datum|
|
||||
|
@ -18,10 +19,10 @@
|
|||
#{datum[:nb_notification]} #{'notification'.pluralize(datum[:nb_notification])}
|
||||
- if datum[:nb_en_instruction] > 0
|
||||
%br
|
||||
#{datum[:nb_en_instruction]} #{'dossier'.pluralize(datum[:nb_en_instruction])}
|
||||
#{datum[:nb_en_instruction]} #{'dossier'.pluralize(datum[:nb_en_instruction])} en instruction
|
||||
- if datum[:nb_accepted] > 0
|
||||
%br
|
||||
#{datum[:nb_accepted]} #{'dossier'.pluralize(datum[:nb_accepted])}
|
||||
#{datum[:nb_accepted]} #{'dossier'.pluralize(datum[:nb_accepted])} #{'accepté'.pluralize(datum[:nb_accepted])}
|
||||
|
||||
|
||||
= render partial: "layouts/mailers/signature"
|
||||
|
|
Loading…
Reference in a new issue