2021-03-23 15:18:03 +01:00
|
|
|
<%= case @activity.subject do %>
|
2021-06-01 18:08:03 +02:00
|
|
|
<% :event_comment_mention -> %>
|
|
|
|
<%=
|
|
|
|
dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.",
|
|
|
|
%{
|
|
|
|
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
|
|
|
event: "<a href=\"#{
|
|
|
|
page_url(
|
|
|
|
Mobilizon.Web.Endpoint,
|
|
|
|
:event,
|
|
|
|
@activity.subject_params["event_uuid"]
|
|
|
|
) |> URI.decode()}\">
|
|
|
|
#{@activity.subject_params["event_title"]}
|
|
|
|
</a>"
|
|
|
|
}
|
|
|
|
) |> raw %>
|
|
|
|
<% :participation_event_comment -> %>
|
|
|
|
<%=
|
|
|
|
dgettext("activity", "%{profile} has posted an announcement under event %{event}.",
|
|
|
|
%{
|
|
|
|
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
|
|
|
event: "<a href=\"#{
|
|
|
|
page_url(
|
|
|
|
Mobilizon.Web.Endpoint,
|
|
|
|
:event,
|
|
|
|
@activity.subject_params["event_uuid"]
|
|
|
|
) |> URI.decode()}\">
|
|
|
|
#{@activity.subject_params["event_title"]}
|
|
|
|
</a>"
|
|
|
|
}
|
|
|
|
) |> raw %>
|
2021-03-23 15:18:03 +01:00
|
|
|
<% end %>
|