X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e08c67024acccb83a30d2010c34862973b883585..572400db0f322f365e2bf6849ceebc432a69191a:/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 e6343628f2..1609a66b09 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,5 +1,5 @@ <% content_for :content_top do %> - <% if @object and not @object.is_a?(Group) and @object.class.goes_in_projects? and @object.owner_uuid == current_user.uuid %> + <% if @object and not @object.is_a?(Group) and @object.class.goes_in_projects? and @object.owner_uuid == current_user.uuid and not @name_link %>
@@ -22,30 +22,35 @@ <% 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] %>
-<% panes.each_with_index do |(pane, content), i| %> -
-
- <%= content %> +<% pane_list.each_with_index do |pane, i| %> +
+ data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>" +<% else %> + data-object-uuid="<%= @object.uuid %>" +<% end %> + > + +
+
+ <% if i == 0 %> + <%= render(partial: 'show_' + pane.downcase, + locals: { comparable: comparable, objects: @objects }) %> + <% else %> +
+ <% end %> +
<% 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 %>