<%= dngettext("activity", "There has been an activity!", "There has been some activity!", @total_number_activities) %>
|
<%= for {_, group_activities} <- @activities do %>
-
<%= if hd(group_activities).group do %>
<%= if hd(group_activities).group.avatar do %>
|
<% end %>
|
|
<% 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_relative(activity.inserted_at, @locale) %>
<% 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 your settings." %>
|
|