X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/87501e7bf8d4f2303cc25a00e93476784911438b..498a97e6cdb456bf7487f7c62dce08791cb5f453:/apps/workbench/app/views/application/_paging.html.erb
diff --git a/apps/workbench/app/views/application/_paging.html.erb b/apps/workbench/app/views/application/_paging.html.erb
index df9d08d778..9c64c2b304 100644
--- a/apps/workbench/app/views/application/_paging.html.erb
+++ b/apps/workbench/app/views/application/_paging.html.erb
@@ -11,25 +11,27 @@ min-width: 1.2em;
}
<% end %>
+<% results.fetch_multiple_pages(false) %>
+
<% if results.respond_to? :result_offset and
results.respond_to? :result_limit and
results.respond_to? :items_available and
results.result_offset != nil and
results.result_limit != nil and
- results.items_available != nil
+ results.items_available != nil
%>
- Displaying <%= results.result_offset+1 %> –
- <%= if results.result_offset + results.result_limit > results.items_available
- results.items_available
- else
- results.result_offset + results.result_limit
+ Displaying <%= results.result_offset+1 %> –
+ <%= if results.result_offset + results.result_limit > results.items_available
+ results.items_available
+ else
+ results.result_offset + results.result_limit
end %>
out of <%= results.items_available %>
<% if not (results.result_offset == 0 and results.items_available <= results.result_limit) %>
-
+
<% if results.result_offset > 0 %>
@@ -54,7 +56,7 @@ min-width: 1.2em;
<% if results.result_offset > 0 %>
<%= link_to raw(""), {:id => object, :offset => 0, :limit => results.result_limit} %>
<% else %>
-
+
<% end %>
<% if prev_offset %>
@@ -111,10 +113,10 @@ min-width: 1.2em;
<% end %>
<% if (results.items_available - results.result_offset) >= results.result_limit %>
- <%= link_to raw(""), {:id => @object, :offset => results.items_available - (results.items_available % results.result_limit),
+ <%= link_to raw(""), {:id => @object, :offset => results.items_available - (results.items_available % results.result_limit),
:limit => results.result_limit} %>
<% else %>
-
+
<% end %>