projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3988: Update crunch-job, arv-run-pipeline-instance and workbench to read/write
[arvados.git]
/
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 463e65a81487a31fdd7e2fd8b0c5f9c26e523af7..df9d08d778c997fb641600eecb70c87fddb59ed1 100644
(file)
--- 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 %>
}
<% 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
+%>
<div class="index-paging">
Displaying <%= results.result_offset+1 %> –
<%= if results.result_offset + results.result_limit > results.items_available
<div class="index-paging">
Displaying <%= results.result_offset+1 %> –
<%= if results.result_offset + results.result_limit > results.items_available