%= case @activity.subject do %>
<% :member_request -> %>
<%= dgettext("activity", "%{member} requested to join the group.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}"
})
|> raw %>
<% :member_invited -> %>
<%= dgettext("activity", "%{member} was invited by %{profile}.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}",
profile: "#{escaped_display_name_and_username(@activity.author)}"
})
|> raw %>
<% :member_accepted_invitation -> %>
<%= dgettext("activity", "%{member} accepted the invitation to join the group.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}"
})
|> raw %>
<% :member_rejected_invitation -> %>
<%= dgettext("activity", "%{member} rejected the invitation to join the group.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}"
})
|> raw %>
<% :member_joined -> %>
<%= dgettext("activity", "%{member} joined the group.", %{
member:
"#{escape_html(@activity.subject_params["member_actor_name"])}"
})
|> raw %>
<% :member_added -> %>
<%= dgettext("activity", "%{profile} added the member %{member}.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}",
profile: "#{escaped_display_name_and_username(@activity.author)}"
})
|> raw %>
<% :member_approved -> %>
<%= dgettext("activity", "%{profile} approved the member %{member}.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}",
profile: "#{escaped_display_name_and_username(@activity.author)}"
})
|> raw %>
<% :member_updated -> %>
<%= dgettext("activity", "%{profile} updated the member %{member}.", %{
member: "#{escape_html(@activity.subject_params["member_actor_name"])}",
profile: "#{escaped_display_name_and_username(@activity.author)}"
})
|> raw %>
<% :member_removed -> %>
<%= dgettext("activity", "%{profile} excluded member %{member}.", %{
member: "#{@activity.subject_params["member_actor_name"]}",
profile: "#{escaped_display_name_and_username(@activity.author)}"
})
|> raw %>
<% :member_quit -> %>
<%= dgettext("activity", "%{profile} quit the group.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}"
})
|> raw %>
<% end %>