2021-03-23 15:18:03 +01:00
|
|
|
<%= case @activity.subject do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<% :member_request -> %>
|
|
|
|
<%= dgettext("activity", "%{member} requested to join the group.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_invited -> %>
|
|
|
|
<%= dgettext("activity", "%{member} was invited by %{profile}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>",
|
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_accepted_invitation -> %>
|
|
|
|
<%= dgettext("activity", "%{member} accepted the invitation to join the group.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_rejected_invitation -> %>
|
|
|
|
<%= dgettext("activity", "%{member} rejected the invitation to join the group.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_joined -> %>
|
|
|
|
<%= dgettext("activity", "%{member} joined the group.", %{
|
|
|
|
member:
|
2022-10-31 13:00:45 +01:00
|
|
|
"<b title=\"#{@activity.subject_params["member_actor_federated_username"]}\">#{escape_html(@activity.subject_params["member_actor_name"])}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_added -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} added the member %{member}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>",
|
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
2022-08-28 10:53:52 +02:00
|
|
|
<% :member_approved -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} approved the member %{member}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>",
|
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>"
|
2022-08-28 10:53:52 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<% :member_updated -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} updated the member %{member}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
member: "<b>#{escape_html(@activity.subject_params["member_actor_name"])}</b>",
|
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_removed -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} excluded member %{member}.", %{
|
|
|
|
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
2022-10-31 13:00:45 +01:00
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :member_quit -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} quit the group.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% end %>
|