X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/32f6ee6884704bde04878f5cbc176a7a819a50e8..e48478841828b1dbab8b69eb9453db23b42ed63f:/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 4499392b63..c4656e659d 100644
--- a/apps/workbench/app/views/application/_content.html.erb
+++ b/apps/workbench/app/views/application/_content.html.erb
@@ -1,46 +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| %>
-
-
-<% content_for :js do %>
- $(document).on('<%= 'ready' if i != 0 %> arv-log-event', function() {
- $.ajax('<%= url_for @object %>?tab_pane=<%= pane %>', {dataType: 'html', type: 'GET'}).
- done(function(data, status, jqxhr) {
- $('#<%= pane %> > div > div').html(data);
- }).
- fail(function(jqxhr, status, error) {
- });
- });
-<% end %>
+ <% comparable = controller.respond_to? :compare %>
+
+
+ <% pane_list.each_with_index do |pane, i| %>
+ <% pane_name = (pane.is_a?(Hash) ? pane[:name] : pane) %>
+
+ <% data_toggle = "tab" %>
+ <% tab_tooltip = "" %>
+ <% link_disabled = "" %>
-
-
-<% 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 %>