From aed494e395c923dd1e3483f718f87f340e7d6158 Mon Sep 17 00:00:00 2001 From: Chris Huynh Date: Thu, 30 Jan 2025 11:51:49 -0600 Subject: [PATCH] avoid rendering pagination if only 1 page, add associated test --- .../nextflow/samplesheet_component.html.erb | 90 ++++++++++--------- .../nextflow/samplesheet_component.rb | 3 +- .../nextflow/samplesheet_controller.js | 6 +- .../nextflow_samplesheet_component_test.rb | 7 +- .../nextflow_samplesheet_component_preview.rb | 15 +++- .../default.html.erb | 16 +--- .../workflow_executions/submissions_test.rb | 54 ++++++++++- 7 files changed, 118 insertions(+), 73 deletions(-) diff --git a/app/components/nextflow/samplesheet_component.html.erb b/app/components/nextflow/samplesheet_component.html.erb index f43ef8fc79..2bf0d9886d 100644 --- a/app/components/nextflow/samplesheet_component.html.erb +++ b/app/components/nextflow/samplesheet_component.html.erb @@ -1,6 +1,6 @@
-
- -
+ <% if samples_workflow_executions_attributes.count > 5 %> +
+ +
+ <% end %>