scinote-web/app/views/activities/_index.html.erb

18 lines
601 B
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<ul class="no-style double-line content-activities">
<% 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 %>
<% if more_activities_url.present? && page == 1 %>
2016-02-12 23:52:43 +08:00
<li class="text-center">
<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>