Skip to content

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

Format duration with DurationComponent

Oliver Günther3449f6bcf1f9
diff --git a/modules/meeting/app/components/meetings/row_component.rb b/modules/meeting/app/components/meetings/row_component.rb
index 88377b0f65e..60abe47f6ad 100644
--- a/modules/meeting/app/components/meetings/row_component.rb
+++ b/modules/meeting/app/components/meetings/row_component.rb
@@ -60,7 +60,7 @@ module Meetings
end
def duration
- "#{number_with_delimiter model.duration} h"
+ render OpenProject::Common::DurationComponent.new(model.duration, :hours, abbreviated: false)
end
def location