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