2016-02-12 23:52:43 +08:00
|
|
|
<ul class="no-style double-line content-activities">
|
2018-01-03 20:48:59 +08:00
|
|
|
<% if activities.empty? %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<li><em><%= t'activities.index.no_activities' %></em></li>
|
|
|
|
<% else %>
|
2018-01-06 00:08:00 +08:00
|
|
|
<%= render 'activities/list.html.erb',
|
|
|
|
activities: activities,
|
|
|
|
previous_activity_created_at: previous_activity_created_at %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
2018-01-03 20:48:59 +08:00
|
|
|
<% if more_activities_url.present? && page == 1 %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<li class="text-center">
|
2018-01-03 20:48:59 +08:00
|
|
|
<a class="btn btn-default btn-more-activities"
|
|
|
|
href="<%= more_activities_url %>"
|
|
|
|
data-remote="true">
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= t'activities.index.more_activities' %></a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|