X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b9d2799dfebae724dda3b3e28641116ca5daf5c7..e3ac17f8a8aa439e21a8bf56a571f91a671313f7:/apps/workbench/app/views/projects/_show_dashboard.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/projects/_show_dashboard.html.erb b/apps/workbench/app/views/projects/_show_dashboard.html.erb index e0093bf6de..bcfeb6a466 100644 --- a/apps/workbench/app/views/projects/_show_dashboard.html.erb +++ b/apps/workbench/app/views/projects/_show_dashboard.html.erb @@ -24,23 +24,41 @@ preload_links_for_objects(collection_pdhs + collection_uuids) %> +<% + 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 +%> +