mailer: re-order notify_new_answer template
This avoids an `if !…` condition.
This commit is contained in:
parent
3fe2e3b374
commit
0a1214114e
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue