Retrospring/app/views/user/show_follow.js.erb

9 lines
396 B
Plaintext
Raw Normal View History

2014-12-08 08:03:06 -08:00
$('#users').append('<% @users.each do |user|
%><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 @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();
<% end %>