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