2019-02-27 23:02:53 +08:00
|
|
|
<% @grouped_activities.each do |date, activities| %>
|
2019-08-08 21:51:08 +08:00
|
|
|
<div class="activities-day" data-date="<%= date %>">
|
|
|
|
<div class="date-container">
|
2019-02-27 23:02:53 +08:00
|
|
|
<a class="activities-group-expand-button"
|
2019-03-15 22:52:30 +08:00
|
|
|
href="javascript:void(0);"
|
2019-02-27 23:02:53 +08:00
|
|
|
id="activities-group-<%= date %>-button"
|
|
|
|
data-toggle="collapse"
|
|
|
|
data-turbolinks="false"
|
|
|
|
data-target="#activities-group-<%= date %>">
|
2023-06-15 21:12:51 +08:00
|
|
|
<span class="sn-icon sn-icon-right"></span>
|
2019-02-27 23:02:53 +08:00
|
|
|
<%= l(Time.parse(date), format: :full_date) %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-08-08 21:51:08 +08:00
|
|
|
<div class="date-activities">
|
2019-02-27 23:02:53 +08:00
|
|
|
<div class="activities-counter-label">
|
|
|
|
<strong><%= activities.length %></strong>
|
|
|
|
<%= t("activities.index.#{'activity'.pluralize(activities.length)}_counter_label") %>
|
|
|
|
</div>
|
2019-08-08 21:51:08 +08:00
|
|
|
<div class="collapse in activities-group"
|
2019-03-04 20:44:43 +08:00
|
|
|
id="activities-group-<%= date %>"
|
|
|
|
data-button-link="<%= "#activities-group-#{date}-button" %>">
|
2019-02-27 23:02:53 +08:00
|
|
|
<% activities.each do |activity| %>
|
2019-08-08 21:51:08 +08:00
|
|
|
<%= render partial: 'global_activities/activity.html.erb', locals: { activity: activity } %>
|
2019-02-27 23:02:53 +08:00
|
|
|
<% end %>
|
2019-08-08 21:51:08 +08:00
|
|
|
</div>
|
2019-02-27 23:02:53 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|