%= case @activity.subject do %>
<% :event_created -> %>
<%= dgettext("activity", "The event %{event} was created by %{profile}.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}",
event:
" url() |> URI.decode()}\">
#{escape_html(@activity.subject_params["event_title"])}
"
})
|> raw %>
<% :event_updated -> %>
<%= dgettext("activity", "The event %{event} was updated by %{profile}.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}",
event:
" url() |> URI.decode()}\">
#{escape_html(@activity.subject_params["event_title"])}
"
})
|> raw %>
<% :event_deleted -> %>
<%= dgettext("activity", "The event %{event} was deleted by %{profile}.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}",
event: "#{escape_html(@activity.subject_params["event_title"])}"
})
|> raw %>
<% :comment_posted -> %>
<%= if @activity.subject_params["comment_reply_to"] do %>
<%= dgettext("activity", "%{profile} replied to a comment on the event %{event}.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}",
event:
" url() |> URI.decode()}\">
#{escape_html(@activity.subject_params["event_title"])}
"
})
|> raw %>
<% else %>
<%= dgettext("activity", "%{profile} posted a comment on the event %{event}.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}",
event:
" url() |> URI.decode()}\">
#{escape_html(@activity.subject_params["event_title"])}
"
})
|> raw %>
<% end %>
<% :event_new_participation -> %>
<%= dgettext("activity", "%{profile} joined your event %{event}.", %{
profile: "#{escaped_display_name_and_username(@activity.author)}",
event:
" url() |> URI.decode()}\">#{escape_html(@activity.subject_params["event_title"])}"
})
|> raw %>
<% end %>