Merge branch 'master' into 6057-public-projects-page
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_log.html.erb
1 <% log_ids = @object.job_log_ids
2    still_logging, done_logging = log_ids.keys.partition { |k| log_ids[k].nil? }
3 %>
4
5 <% unless done_logging.empty? %>
6   <table class="topalign table table-condensed table-fixedlayout">
7     <colgroup>
8       <col width="40%" />
9       <col width="60%" />
10     </colgroup>
11     <thead>
12       <tr>
13         <th>finished component</th>
14         <th>job log</th>
15       </tr>
16     </thead>
17     <tbody>
18       <% done_logging.each do |cname| %>
19       <tr>
20         <td><%= cname %></td>
21         <td><%= link_to("Log for #{cname}",
22                 {controller: "collections", action: "show", id: log_ids[cname]})
23                 %></td>
24       </tr>
25       <% end %>
26     </tbody>
27   </table>
28 <% end %>
29
30 <% unless still_logging.empty? %>
31   <h4>Logs in progress</h4>
32
33   <div id="event_log_div"
34        class="arv-log-event-listener arv-log-event-handler-append-logs arv-log-event-subscribe-to-pipeline-job-uuids arv-job-log-window"
35        data-object-uuids="<%= @object.stderr_log_object_uuids.join(' ') %>"
36        ><%= @object.stderr_log_lines.join("\n") %></div>
37
38   <%# Applying a long throttle suppresses the auto-refresh of this
39       partial that would normally be triggered by arv-log-event. %>
40   <div class="arv-log-refresh-control"
41        data-load-throttle="86486400000" <%# 1001 nights %>
42        ></div>
43 <% end %>
44