Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / apps / workbench / app / views / application / _content.html.erb
1 <% content_for :tab_panes do %>
2
3   <% comparable = controller.respond_to? :compare %>
4
5   <ul class="nav nav-tabs" data-tab-counts-url="<%= url_for(action: :tab_counts) rescue '' %>">
6     <% pane_list.each_with_index do |pane, i| %>
7       <% pane_name = (pane.is_a?(Hash) ? pane[:name] : pane) %>
8       <li class="<%= 'active' if i==0 %>">
9         <a href="#<%= pane_name %>"
10            id="<%= pane_name %>-tab"
11            data-toggle="tab"
12            data-tab-history=true
13            data-tab-history-update-url=true
14            >
15           <%= pane_name.gsub('_', ' ') %> <span id="<%= pane_name %>-count"></span>
16         </a>
17       </li>
18     <% end %>
19   </ul>
20
21   <div class="tab-content">
22     <% pane_list.each_with_index do |pane, i| %>
23       <% pane_name = (pane.is_a?(Hash) ? pane[:name] : pane) %>
24       <div id="<%= pane_name %>"
25            class="tab-pane fade <%= 'in active pane-loaded' if i==0 %> arv-log-event-listener arv-refresh-on-log-event arv-log-event-subscribe-to-pipeline-job-uuids"
26            <% if controller.action_name == "index" %>
27              data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>"
28            <% else %>
29              data-object-uuid="<%= @object.uuid %>"
30            <% end %>
31            data-pane-content-url="<%= url_for(params.merge(tab_pane: pane_name)) %>"
32            style="margin-top:0.5em;"
33            >
34         <div class="pane-content">
35           <% if i == 0 %>
36             <%= render_pane pane_name, to_string: true %>
37           <% else %>
38             <div class="spinner spinner-32px spinner-h-center"></div>
39           <% end %>
40         </div>
41       </div>
42     <% end %>
43   </div>
44
45 <% end %>