Skip to content

Commit

Permalink
Fix preview mailers (header)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isalafont authored and skelz0r committed Mar 28, 2024
1 parent c3ff00b commit 8b34a1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/mailer/shared/applicant/_header.text.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= t('.text', entity_name:) %>
<%= [t('.text'), entity_name].compact.join(" ") %>,
2 changes: 1 addition & 1 deletion config/locales/mailer.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fr:
email: [email protected]
applicant:
header:
text: <%= ["Bonjour", entity_name].compact.join(" ") %>,
text: 'Bonjour'
footer:
text: L'équipe %{authorization_definition_name}
instruction:
Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/previews/authorization_request_preview.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AuthorizationRequestPreview < ActionMailer::Preview
%w[validated refused changes_requested].each do |state|
%w[changes_requested refused revoked validated].each do |state|
[state, "reopening_#{state}"].each do |mth|
define_method mth do
authorization_request_mailer_method(state, mth)
Expand Down

0 comments on commit 8b34a1b

Please sign in to comment.