2023-10-17 16:41:31 +02:00
|
|
|
<%= case @activity.subject do %>
|
|
|
|
<% :conversation_created -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} mentionned you in a %{conversation}.", %{
|
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>",
|
|
|
|
conversation:
|
2023-12-01 09:49:54 +01:00
|
|
|
"<a href=\"#{~p"/conversations/#{@activity.subject_params["conversation_participant_id"]}" |> url() |> URI.decode()}\">conversation</a>"
|
2023-10-17 16:41:31 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :conversation_replied -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} replied you in a %{conversation}.", %{
|
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>",
|
|
|
|
conversation:
|
2023-12-01 09:49:54 +01:00
|
|
|
"<a href=\"#{~p"/conversations/#{@activity.subject_params["conversation_participant_id"]}" |> url() |> URI.decode()}\">conversation</a>"
|
2023-10-17 16:41:31 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% end %>
|