2872: Rearrange standard views to deemphasize "advanced" usage, add infinite scroll
[arvados.git] / apps / workbench / app / views / application / _content.html.erb
index 53444a5c9c72defe283deff498996f1c8ffb7782..32c053f645fb7012275816c3f7ffe3cc4396a37b 100644 (file)
@@ -4,7 +4,7 @@
 <% pane_list ||= %w(recent) %>
 <% panes = Hash[pane_list.map { |pane|
      [pane, render(partial: 'show_' + pane.downcase,
-                   locals: { comparable: comparable })]
+                   locals: { comparable: comparable, objects: @objects })]
    }.compact] %>
 
 <ul class="nav nav-tabs">
@@ -15,7 +15,7 @@
 <div class="tab-content">
 <% panes.each_with_index do |(pane, content), i| %>
   <div id="<%= pane %>" class="tab-pane fade <%= 'in active' if i==0 %>">
-    <div class="smart-scroll" style="margin-top:0.5em;">
+    <div id="<%= pane %>-scroll" class="smart-scroll" style="margin-top:0.5em;">
       <%= content %>
     </div>
   </div>