From c7eec30bdf756d1c833b16f29863750fa602d7ca Mon Sep 17 00:00:00 2001 From: ulferts Date: Thu, 1 Feb 2024 13:17:52 +0100 Subject: [PATCH] move helper methods to project table/row component --- .../projects/row_component.html.erb | 5 +- app/components/projects/row_component.rb | 79 ++++++++++ app/components/projects/table_component.rb | 32 +++- app/helpers/projects_helper.rb | 147 ------------------ 4 files changed, 110 insertions(+), 153 deletions(-) diff --git a/app/components/projects/row_component.html.erb b/app/components/projects/row_component.html.erb index 6d76a31066d..9807cbe3fd5 100644 --- a/app/components/projects/row_component.html.erb +++ b/app/components/projects/row_component.html.erb @@ -37,13 +37,12 @@ See COPYRIGHT and LICENSE files for more details. <% end %> - <% items = helpers.project_more_menu_items(project) %> - <% if items.any? %> + <% if more_menu_items.any? %>