Add missing case for :member_approved in email member activity

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-08-28 10:53:52 +02:00
parent 0e7ff25333
commit 07b2447a07
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 12 additions and 0 deletions

View file

@ -32,6 +32,12 @@
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
})
|> raw %>
<% :member_approved -> %>
<%= dgettext("activity", "%{profile} approved the member %{member}.", %{
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
})
|> raw %>
<% :member_updated -> %>
<%= dgettext("activity", "%{profile} updated the member %{member}.", %{
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",

View file

@ -30,6 +30,12 @@
profile: Mobilizon.Actors.Actor.display_name_and_username(@activity.author),
}
) %>
<% :member_approved -> %><%= dgettext("activity", "%{profile} approved the member %{member}.",
%{
member: @activity.subject_params["member_actor_name"],
profile: Mobilizon.Actors.Actor.display_name_and_username(@activity.author),
}
) %>
<% :member_updated -> %><%= dgettext("activity", "%{profile} updated the member %{member}.",
%{
member: @activity.subject_params["member_actor_name"],