2021-03-23 15:18:03 +01:00
|
|
|
<%= case @activity.subject do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<% :group_created -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} created the group %{group}.", %{
|
|
|
|
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
|
|
|
group: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
|
|
|
:actor,
|
|
|
|
@activity.subject_params["group_federated_username"]) |> URI.decode()}\">
|
2021-03-23 15:18:03 +01:00
|
|
|
#{@activity.subject_params["group_name"]}
|
|
|
|
</a>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :group_updated -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} updated the group %{group}.", %{
|
|
|
|
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
|
|
|
group: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
|
|
|
:actor,
|
|
|
|
@activity.subject_params["group_federated_username"]) |> URI.decode()}\">
|
2021-03-23 15:18:03 +01:00
|
|
|
#{@activity.subject_params["group_name"]}
|
|
|
|
</a>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% end %>
|