X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/df8de1bd9a517a1a3bfac0f8ab9ace41524d4b39..c446dd845656e944c2d3f91f8d00e320c37b66a1:/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 463e65a814..df9d08d778 100644 --- a/apps/workbench/app/views/application/_paging.html.erb +++ b/apps/workbench/app/views/application/_paging.html.erb @@ -11,7 +11,13 @@ min-width: 1.2em; } <% end %> -<% if results.result_offset != nil and results.result_limit != nil and results.items_available != nil %> +<% 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 +%>
Displaying <%= results.result_offset+1 %> – <%= if results.result_offset + results.result_limit > results.items_available