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

8 lines
340 B
Plaintext
Raw Normal View History

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