9767: need to parse the json string of the workflow yaml
[arvados.git] / apps / workbench / app / views / work_units / _show_log.html.erb
1 <% wu = obj.work_unit(name) %>
2
3 <% render_log = wu.render_log %>
4 <% if render_log %>
5   <div>
6     <% log_url = url_for render_log[:log] %>
7     <p> <a href="<%= log_url %>">Download the log</a> </p>
8     <%= render(partial: render_log[:partial], locals: render_log[:locals]) %>
9   </div>
10 <% end %>
11
12 <%# Show log in terminal window %>
13 <h4>Recent logs</h4>
14 <div id="event_log_div"
15      class="arv-log-event-listener arv-log-event-handler-append-logs arv-job-log-window"
16      data-object-uuids="<%= wu.log_object_uuids.join(' ') %>"
17   ><%= wu.live_log_lines(Rails.configuration.running_job_log_records_to_fetch).join("\n") %>
18 </div>
19
20 <%# Applying a long throttle suppresses the auto-refresh of this
21     partial that would normally be triggered by arv-log-event. %>
22 <div class="arv-log-refresh-control"
23      data-load-throttle="86486400000" <%# 1001 nights %>>
24 </div>