X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7df2da959b583d3646b9fde606f9e74d598d4bb9..5536864737f7729775f9b2ee95516d6df5053451:/apps/workbench/app/views/application/_content.html.erb diff --git a/apps/workbench/app/views/application/_content.html.erb b/apps/workbench/app/views/application/_content.html.erb index 0e3fa0b978..a22608d3c9 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,51 +1,69 @@ -<% content_for :content_top do %> - <% if @object and not @object.is_a?(Group) and @object.class.goes_in_folders? and @object.owner_uuid == current_user.uuid %> -
-
- - Hey. This <%= @object.class_for_display.downcase %> belongs to your account, but it's not in any of your folders. If you want it to be easy to find in the future, you should move it to a folder.
- <%= button_to(choose_folders_path( - title: 'Move to...', - editable: true, - action_name: 'Move', - action_href: url_for(action: :update), - action_method: 'patch', - action_data: {selection_param: @object.resource_param_name+'[owner_uuid]', success: 'page-refresh'}.to_json), - { class: "btn btn-primary btn-sm", remote: true, method: 'get' }) do %> - Choose a folder... - <% end %> -
-
- <% end %> -<% end %> - <% content_for :tab_panes do %> -<% comparable = controller.respond_to? :compare %> -<% pane_list ||= %w(recent) %> -<% panes = Hash[pane_list.map { |pane| - [pane, render(partial: 'show_' + pane.downcase, - locals: { comparable: comparable, objects: @objects })] - }.compact] %> + <% comparable = controller.respond_to? :compare %> - -
-<% panes.each_with_index do |(pane, content), i| %> -
-
- <%= content %> -
-
-<% end %> -
+ + +
+ <% pane_list.each_with_index do |pane, i| %> + <% pane_name = (pane.is_a?(Hash) ? pane[:name] : pane) %> +
+ data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>" + <% else %> + data-object-uuid="<%= @object.uuid %>" + <% end %> + data-pane-content-url="<%= url_for(params.merge(tab_pane: pane_name)) %>" + style="margin-top:0.5em;" + > +
+ <% if i == 0 %> + <%= render_pane pane_name, to_string: true %> + <% else %> +
+ <% end %> +
+
+ <% end %> +
-<% content_for :js do %> - $(window).on('load', smart_scroll_fixup); - $(document).on('shown.bs.tab', 'ul.nav-tabs > li > a', smart_scroll_fixup); <% end %>