2014-12-08 08:03:06 -08:00
|
|
|
$('#users').append('<% @users.each do |user|
|
2020-05-10 01:02:04 -07:00
|
|
|
%><div class="col"><%= j render 'shared/userbox', user: user, type: @type
|
2014-12-08 08:03:06 -08:00
|
|
|
%></div><% end %>');
|
2020-04-20 14:03:57 -07:00
|
|
|
<% if @more_data_available %>
|
|
|
|
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @users_last_id %>');
|
2014-12-08 08:03:06 -08:00
|
|
|
<% else %>
|
|
|
|
$('#pagination, #load-more-btn').remove();
|
2015-07-24 08:14:42 -07:00
|
|
|
<% end %>
|