X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/061dc0bcb7ced7ad196c6cc71dd25aab59948e46..c8ad3a2a0f27964eff5d5c2d845afab728836473:/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