9 lines
385 B
Plaintext
9 lines
385 B
Plaintext
$('#users').append('<% @users.each do |user|
|
|
%><div class="col"><%= j render 'shared/userbox', user: user, type: @type
|
|
%></div><% end %>');
|
|
<% if @more_data_available %>
|
|
$('#pagination').html('<%= j render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @users_last_id %>');
|
|
<% else %>
|
|
$('#pagination, #load-more-btn').remove();
|
|
<% end %>
|