scinote-web/app/views/activities/_index.html.erb
2018-01-05 17:08:00 +01:00

17 lines
601 B
Text

<ul class="no-style double-line content-activities">
<% if activities.empty? %>
<li><em><%= t'activities.index.no_activities' %></em></li>
<% else %>
<%= render 'activities/list.html.erb',
activities: activities,
previous_activity_created_at: previous_activity_created_at %>
<% end %>
<% if more_activities_url.present? && page == 1 %>
<li class="text-center">
<a class="btn btn-default btn-more-activities"
href="<%= more_activities_url %>"
data-remote="true">
<%= t'activities.index.more_activities' %></a>
</li>
<% end %>
</ul>