X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6f461f4d0a996da85140982846a5d5c10ccfaae4..e3ac17f8a8aa439e21a8bf56a571f91a671313f7:/apps/workbench/app/views/projects/_show_dashboard.html.erb diff --git a/apps/workbench/app/views/projects/_show_dashboard.html.erb b/apps/workbench/app/views/projects/_show_dashboard.html.erb index ab6eb16f51..bcfeb6a466 100644 --- a/apps/workbench/app/views/projects/_show_dashboard.html.erb +++ b/apps/workbench/app/views/projects/_show_dashboard.html.erb @@ -25,17 +25,25 @@ %> <% + recent_procs_panel_width = 6 if !PipelineInstance.api_exists?(:index) recent_procs_title = 'Recent processes' run_proc_title = 'Choose a workflow to run:' + show_node_status = false + # Recent processes panel should take the entire width when is the only one + # being rendered. + if !Rails.configuration.show_recent_collections_on_dashboard + recent_procs_panel_width = 12 + end else recent_procs_title = 'Recent pipelines and processes' run_proc_title = 'Choose a pipeline or workflow to run:' + show_node_status = true end %>
-
+
<%=recent_procs_title%> @@ -140,6 +148,7 @@
+ <% if show_node_status %> <% nodes = Node.filter([["last_ping_at", ">", Time.now - 3600]]).results %>
Compute node status @@ -173,6 +182,7 @@
+ <% end %> <% if Rails.configuration.show_recent_collections_on_dashboard %>
Recent collections