app/views/fcrepo_admin/associations/show.html.erb in fcrepo_admin-0.5.3 vs app/views/fcrepo_admin/associations/show.html.erb in fcrepo_admin-0.5.4
- old
+ new
@@ -1,18 +1,14 @@
<h3><%= t("fcrepo_admin.object.associations.title") %>: <%= @association.name %></h3>
<% if @response.total > 0 %>
- <% if @response.total > associated_objects_per_page %>
- <div class="pagination">
- <%= render_pagination_info @response %>
- </div>
- <% end %>
- <%= render :partial => 'catalog/document_list', :locals => {:documents => @documents} %>
- <% if @response.total > associated_objects_per_page %>
- <div class="pagination">
- <%= render :partial => 'pagination', :locals => {:pagination_info => paginate_params(@response)} %>
- </div>
- <% end %>
+ <div class="pagination">
+ <%= render_pagination_info @response %>
+ </div>
+ <%= render_document_index @documents %>
+ <div class="pagination">
+ <%= safe_paginate_rsolr_response @response %>
+ </div>
<% else %>
<div class="alert">
No associated objects found.
</div>
<% end %>