2021-03-23 15:18:03 +01:00
|
|
|
<%= case @activity.subject do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<% :event_comment_mention -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>",
|
2022-09-20 16:53:26 +02:00
|
|
|
event:
|
2023-12-01 09:49:54 +01:00
|
|
|
"<a href=\"#{~p"/events/#{@activity.subject_params["event_uuid"]}" |> url() |> URI.decode()}\">
|
2022-10-31 13:00:45 +01:00
|
|
|
#{escape_html(@activity.subject_params["event_title"])}
|
2021-06-01 18:08:03 +02:00
|
|
|
</a>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :participation_event_comment -> %>
|
|
|
|
<%= dgettext("activity", "%{profile} has posted an announcement under event %{event}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>",
|
2022-09-20 16:53:26 +02:00
|
|
|
event:
|
2023-12-01 09:49:54 +01:00
|
|
|
"<a href=\"#{~p"/events/#{@activity.subject_params["event_uuid"]}" |> url() |> URI.decode()}\">
|
2022-10-31 13:00:45 +01:00
|
|
|
#{escape_html(@activity.subject_params["event_title"])}
|
2021-06-01 18:08:03 +02:00
|
|
|
</a>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% :event_new_comment -> %>
|
|
|
|
<%= if @activity.subject_params["comment_reply_to"] do %>
|
|
|
|
<%= dgettext("activity", "%{profile} has posted a new reply under your event %{event}.", %{
|
2022-10-31 13:00:45 +01:00
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>",
|
2022-09-20 16:53:26 +02:00
|
|
|
event:
|
2023-12-01 09:49:54 +01:00
|
|
|
"<a href=\"#{~p"/events/#{@activity.subject_params["event_uuid"]}" |> url() |> URI.decode()}#comment-#{@activity.subject_params["comment_reply_to_uuid"]}-#{@activity.subject_params["comment_uuid"]}\">
|
2022-10-31 13:00:45 +01:00
|
|
|
#{escape_html(@activity.subject_params["event_title"])}
|
2021-06-27 11:21:34 +02:00
|
|
|
</a>"
|
2022-04-07 10:33:11 +02:00
|
|
|
})
|
|
|
|
|> raw %>
|
|
|
|
<% else %>
|
|
|
|
<%= dgettext(
|
|
|
|
"activity",
|
|
|
|
"%{profile} has posted a new comment under your event %{event}.",
|
|
|
|
%{
|
2022-10-31 13:00:45 +01:00
|
|
|
profile: "<b>#{escaped_display_name_and_username(@activity.author)}</b>",
|
2022-09-20 16:53:26 +02:00
|
|
|
event:
|
2023-12-01 09:49:54 +01:00
|
|
|
"<a href=\"#{~p"/events/#{@activity.subject_params["event_uuid"]}" |> url() |> URI.decode()}#comment-#{@activity.subject_params["comment_uuid"]}\">
|
2022-10-31 13:00:45 +01:00
|
|
|
#{escape_html(@activity.subject_params["event_title"])}
|
2021-06-27 11:21:34 +02:00
|
|
|
</a>"
|
2022-04-07 10:33:11 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|> raw %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|