forked from potsda.mn/mobilizon
9f5e3a39ec
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
21 lines
1.6 KiB
Elixir
21 lines
1.6 KiB
Elixir
<%= @subject %>
|
|
|
|
==
|
|
<%= dngettext("activity", "There has been an activity!", "There has been some activity!", @total_number_activities) %>
|
|
|
|
<%= for {_, group_activities} <- @activities do %>
|
|
|
|
==
|
|
<%= hd(group_activities).group.name || "@#{Mobilizon.Actors.Actor.preferred_username_and_domain(hd(group_activities).group)}" %>
|
|
|
|
<%= for activity <- Enum.take(group_activities, 5) do %>
|
|
* <%= case activity.type do %><% :discussion -> %><%= render("activity/_discussion_activity_item.text", activity: activity) %><% :event -> %><%= render("activity/_event_activity_item.text", activity: activity) %><% :group -> %><%= render("activity/_group_activity_item.text", activity: activity) %>
|
|
<% :member -> %><%= render("activity/_member_activity_item.text", activity: activity) %><% :post -> %><%= render("activity/_post_activity_item.text", activity: activity) %><% :resource -> %><%= render("activity/_resource_activity_item.text", activity: activity) %><% :comment -> %><%= render("activity/_comment_activity_item.text", activity: activity) %><% end %>
|
|
<%= unless @single_activity do %><%= datetime_relative(activity.inserted_at, @locale) %><% end %>
|
|
<% end %>
|
|
<%= if length(group_activities) > 5 do %>
|
|
<%= dngettext "activity", "View one more activity", "View %{count} more activities", length(group_activities) - 5, %{count: length(group_activities) - 5} %>
|
|
<%= page_url(Mobilizon.Web.Endpoint, :actor, Mobilizon.Actors.Actor.preferred_username_and_domain(hd(group_activities).group)) |> URI.decode() %>/timeline
|
|
<% end %>
|
|
<% end %>
|
|
<%= dgettext("activity", "Don't want to receive activity notifications? You may change frequency or disable them in your settings.") %> |