<%= case @recap do %>
<% :one_day -> %>
<% dgettext("activity", "Here's your daily activity recap") %>
<% :one_week -> %>
<% dgettext("activity", "Here's your weekly activity recap") %>
<% :one_hour -> %>
<%= dngettext(
"activity",
"There has been an activity!",
"There has been some activity!",
@total_number_activities
) %>
<% false -> %>
<%= dngettext(
"activity",
"There has been an activity!",
"There has been some activity!",
@total_number_activities
) %>
<% end %>
|
<%= for {_, group_activities} <- @activities do %>
-
<%= if hd(group_activities).group do %>
<% end %>
<%= for activity <- Enum.take(group_activities, 5) do %>
-
<%= case activity.type do %>
<% :discussion -> %>
<%= render("activity/_discussion_activity_item.html",
activity: activity
) %>
<% :event -> %>
<%= render("activity/_event_activity_item.html",
activity: activity
) %>
<% :group -> %>
<%= render("activity/_group_activity_item.html",
activity: activity
) %>
<% :member -> %>
<%= render("activity/_member_activity_item.html",
activity: activity
) %>
<% :post -> %>
<%= render("activity/_post_activity_item.html",
activity: activity
) %>
<% :resource -> %>
<%= render("activity/_resource_activity_item.html",
activity: activity
) %>
<% :comment -> %>
<%= render("activity/_comment_activity_item.html",
activity: activity
) %>
<% end %>
<%= unless @single_activity do %>
<%= datetime_to_string(activity.inserted_at, @locale, :short) %>
<% end %>
<% end %>
<%= if length(group_activities) > 5 do %>
<% end %>
<% end %>
|
|
<%= dgettext(
"activity",
"Don't want to receive activity notifications? You may change frequency or disable them in %{tag_start}your settings%{tag_end}.",
%{
tag_start: "",
tag_end: ""
}
)
|> raw %>
|
|