2014-12-08 08:03:06 -08:00
|
|
|
$('#users').append('<% @users.each do |user|
|
2015-07-24 08:14:42 -07:00
|
|
|
%><div class="col-md-4 col-sm-6 col-xs-12"><%= j render 'shared/userbox', user: user
|
2014-12-08 08:03:06 -08:00
|
|
|
%></div><% end %>');
|
|
|
|
<% if @users.next_page %>
|
|
|
|
$('#pagination').html('<%= j will_paginate @users, renderer: BootstrapPagination::Rails, page_links: false %>');
|
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
2015-07-24 08:14:42 -07:00
|
|
|
<% end %>
|