forked from potsda.mn/mobilizon
8235f4c7b5
See https://gist.github.com/chrismccord/2ab350f154235ad4a4d0f4de6decba7b#rename-your-htmleex-and-htmlleex-templates-to-htmlheex-optional Signed-off-by: Thomas Citharel <tcit@tcit.fr>
65 lines
3.1 KiB
Plaintext
65 lines
3.1 KiB
Plaintext
<%= case @activity.subject do %>
|
|
<% :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=\"#{
|
|
Routes.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=\"#{
|
|
Routes.page_url(
|
|
Mobilizon.Web.Endpoint,
|
|
:event,
|
|
@activity.subject_params["event_uuid"]
|
|
) |> URI.decode()}\">
|
|
#{@activity.subject_params["event_title"]}
|
|
</a>"
|
|
}
|
|
) |> raw %>
|
|
|
|
<% :event_new_comment -> %>
|
|
<%= if @activity.subject_params["comment_reply_to"] do %>
|
|
<%=
|
|
dgettext("activity", "%{profile} has posted a new reply under your event %{event}.",
|
|
%{
|
|
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
|
event: "<a href=\"#{
|
|
Routes.page_url(
|
|
Mobilizon.Web.Endpoint,
|
|
:event,
|
|
@activity.subject_params["event_uuid"]
|
|
) |> URI.decode()}#comment-#{@activity.subject_params["comment_reply_to_uuid"]}-#{@activity.subject_params["comment_uuid"]}\">
|
|
#{@activity.subject_params["event_title"]}
|
|
</a>"
|
|
}
|
|
) |> raw %>
|
|
<% else %>
|
|
<%=
|
|
dgettext("activity", "%{profile} has posted a new comment under your event %{event}.",
|
|
%{
|
|
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
|
event: "<a href=\"#{
|
|
Routes.page_url(
|
|
Mobilizon.Web.Endpoint,
|
|
:event,
|
|
@activity.subject_params["event_uuid"]
|
|
) |> URI.decode()}#comment-#{@activity.subject_params["comment_uuid"]}\">
|
|
#{@activity.subject_params["event_title"]}
|
|
</a>"
|
|
}
|
|
) |> raw %>
|
|
<% end %>
|
|
<% end %> |