mailer: re-order notify_new_answer template

This avoids an `if !…` condition.
This commit is contained in:
Pierre de La Morinerie 2022-02-16 17:59:02 +01:00
parent 3fe2e3b374
commit 0a1214114e

View file

@ -3,16 +3,16 @@
%p= t(:hello, scope: [:views, :shared, :greetings])
- if !@dossier.brouillon?
%p= t('.body_html', libelle_demarche: @dossier.procedure.libelle)
%p= t('.link')
= round_button(t('.access_message'), messagerie_dossier_url(@dossier), :primary)
- else
- if @dossier.brouillon?
%p= t('.body_draft_html', libelle_demarche: @dossier.procedure.libelle)
%p{ style: "padding: 8px; color: #333333; background-color: #EEEEEE; font-size: 14px;" }
= @body
%p= t('.contact')
= round_button(t('.access_file'), dossier_url(@dossier), :primary)
- else
%p= t('.body_html', libelle_demarche: @dossier.procedure.libelle)
%p= t('.link')
= round_button(t('.access_message'), messagerie_dossier_url(@dossier), :primary)
= render 'layouts/mailers/signature', service: @service