X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/07a3aa9651168756a6f108821f6ef10ea4ba8144..ad25d712525293ce4f95f5a059b390036ec60dc3:/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 7249e32c04..c4656e659d 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,41 +1,73 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% content_for :tab_panes do %> -<% comparable = controller.respond_to? :compare %> - - -
-<% 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_pane pane, to_string: true %> - <% else %> -
- <% end %> + <% comparable = controller.respond_to? :compare %> + + + +
+ <% 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.permit!.merge(tab_pane: pane_name)) %>" + style="margin-top:0.5em;" + > +
+ <% if i == 0 %> + <%= render_pane pane_name, to_string: true %> + <% else %> +
+ <% end %> +
-
+ <% end %>
-<% end %> -
<% end %>