1 <% content_for :tab_panes do %>
3 <% comparable = controller.respond_to? :compare %>
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) %>
9 <% data_toggle = "tab" %>
10 <% tab_tooltip = "" %>
11 <% link_disabled = "" %>
13 <% if (pane_name == "Log") and !(ArvadosBase.find(@object.owner_uuid).writable_by.include?(current_user.andand.uuid) rescue nil)
14 if controller.model_class.to_s == 'Job'
15 if @object.log and !@object.log.empty?
16 logCollection = Collection.find? @object.log
18 data_toggle = "disabled"
19 tab_tooltip = "Log data is not available"
20 link_disabled = "disabled"
23 elsif (controller.model_class.to_s == 'PipelineInstance' and
24 !@object.has_readable_logs?)
25 data_toggle = "disabled"
26 tab_tooltip = "Log data is not available"
27 link_disabled = "disabled"
32 <li class="<%= 'active' if i==0 %> <%= link_disabled %>" data-toggle="tooltip" data-placement="top" title="<%=tab_tooltip%>">
33 <a href="#<%= pane_name %>"
34 id="<%= pane_name %>-tab"
35 data-toggle="<%= data_toggle %>"
37 data-tab-history-update-url=true
39 <%= pane_name.gsub('_', ' ') %> <span id="<%= pane_name %>-count"></span>
45 <div class="tab-content">
46 <% pane_list.each_with_index do |pane, i| %>
47 <% pane_name = (pane.is_a?(Hash) ? pane[:name] : pane) %>
48 <div id="<%= pane_name %>"
49 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"
50 <% if controller.action_name == "index" %>
51 data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>"
53 data-object-uuid="<%= @object.uuid %>"
55 data-pane-content-url="<%= url_for(params.merge(tab_pane: pane_name)) %>"
56 style="margin-top:0.5em;"
58 <div class="pane-content">
60 <%= render_pane pane_name, to_string: true %>
62 <div class="spinner spinner-32px spinner-h-center"></div>