X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4ed794e2803ef9812dbc7ae938a8e17b3b9714c1..04d8e74e9b6476b2a87c5a66c07566f041c97b37:/apps/workbench/app/views/work_units/_show_log.html.erb?ds=inline
diff --git a/apps/workbench/app/views/work_units/_show_log.html.erb b/apps/workbench/app/views/work_units/_show_log.html.erb
index 566da5ba86..f9b6241ea3 100644
--- a/apps/workbench/app/views/work_units/_show_log.html.erb
+++ b/apps/workbench/app/views/work_units/_show_log.html.erb
@@ -9,16 +9,111 @@
<% end %>
-<%# Show log in terminal window %>
-
Recent logs
-<%= wu.live_log_lines(Rails.configuration.running_job_log_records_to_fetch).join("\n") %>
-
-
-<%# Applying a long throttle suppresses the auto-refresh of this
- partial that would normally be triggered by arv-log-event. %>
->
-
+<% live_log_lines = wu.live_log_lines(Rails.configuration.running_job_log_records_to_fetch).join("\n") %>
+<% if !render_log or (live_log_lines.size > 0) %>
+ <%# Still running, or recently finished and logs are still available from logs table %>
+ <%# Show recent logs in terminal window %>
+ Recent logs
+ <%= live_log_lines %>
+
+
+ <%# Applying a long throttle suppresses the auto-refresh of this
+ partial that would normally be triggered by arv-log-event. %>
+ >
+
+<% elsif render_log[:log] %>
+ <%# Retrieve finished log from keep and show %>
+
+
+
+<% end %>