OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#47024] Replace TeamPlanner cells by ViewComponent
Dombi Attila1b78e44ec5b8
diff --git a/modules/team_planner/app/cells/team_planner/row_cell.rb b/modules/team_planner/app/components/team_planner/row_component.rbsimilarity index 98%rename from modules/team_planner/app/cells/team_planner/row_cell.rbrename to modules/team_planner/app/components/team_planner/row_component.rbindex ab430452522..71eb937700c 100644--- a/modules/team_planner/app/cells/team_planner/row_cell.rb+++ b/modules/team_planner/app/components/team_planner/row_component.rb@@ -27,7 +27,7 @@#++module TeamPlanner- class RowCell < ::RowCell+ class RowComponent < ::RowComponentinclude ApplicationHelperinclude ::Redmine::I18ndiff --git a/modules/team_planner/app/cells/team_planner/table_cell.rb b/modules/team_planner/app/components/team_planner/table_component.rbsimilarity index 97%rename from modules/team_planner/app/cells/team_planner/table_cell.rbrename to modules/team_planner/app/components/team_planner/table_component.rbindex 73814bafea8..c2ab05baf1c 100644--- a/modules/team_planner/app/cells/team_planner/table_cell.rb+++ b/modules/team_planner/app/components/team_planner/table_component.rb@@ -27,7 +27,7 @@#++module TeamPlanner- class TableCell < ::TableCell+ class TableComponent < ::TableComponentoptions :current_usercolumns :name, :assignees, :created_atdiff --git a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb b/modules/team_planner/app/views/team_planner/team_planner/index.html.erbindex e8feb0ce83f..624d912e16f 100644--- a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb+++ b/modules/team_planner/app/views/team_planner/team_planner/index.html.erb@@ -13,4 +13,4 @@<% end %><% end %>-<%= rails_cell ::TeamPlanner::TableCell, @views, current_user: current_user %>\ No newline at end of file+<%= render ::TeamPlanner::TableComponent.new(rows: @views, current_user: current_user) %>\ No newline at end of file