2019-03-13 17:59:33 +01:00
|
|
|
- content_for(:title, 'Du nouveau sur vos démarches')
|
|
|
|
|
|
|
|
%p
|
|
|
|
Bonjour,
|
|
|
|
|
|
|
|
%p
|
2020-12-02 18:06:37 +01:00
|
|
|
Vous avez du nouveau sur #{APPLICATION_NAME} depuis
|
|
|
|
= Date.today.monday? ? "vendredi dernier" : "hier"
|
2019-03-13 17:59:33 +01:00
|
|
|
|
|
|
|
%ul
|
|
|
|
- @data.each do |datum|
|
|
|
|
%li
|
2020-07-07 12:03:32 +02:00
|
|
|
= link_to(datum[:procedure_libelle], instructeur_procedure_url(datum[:procedure_id]))
|
2019-03-13 17:59:33 +01:00
|
|
|
- if datum[:nb_en_construction] > 0
|
|
|
|
%br
|
|
|
|
#{datum[:nb_en_construction]} #{'dossier'.pluralize(datum[:nb_en_construction])} en construction
|
|
|
|
- if datum[:nb_notification] > 0
|
|
|
|
%br
|
|
|
|
#{datum[:nb_notification]} #{'notification'.pluralize(datum[:nb_notification])}
|
2020-03-13 10:24:25 +01:00
|
|
|
- if datum[:nb_en_instruction] > 0
|
|
|
|
%br
|
2020-12-02 17:26:44 +01:00
|
|
|
#{datum[:nb_en_instruction]} #{'dossier'.pluralize(datum[:nb_en_instruction])} en instruction
|
2020-03-13 10:24:25 +01:00
|
|
|
- if datum[:nb_accepted] > 0
|
|
|
|
%br
|
2020-12-02 17:26:44 +01:00
|
|
|
#{datum[:nb_accepted]} #{'dossier'.pluralize(datum[:nb_accepted])} #{'accepté'.pluralize(datum[:nb_accepted])}
|
2020-03-13 10:24:25 +01:00
|
|
|
|
2019-03-13 17:59:33 +01:00
|
|
|
|
|
|
|
= render partial: "layouts/mailers/signature"
|