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

Use existing component for timeTracking list

Henriette Dargea61306c03f1f
diff --git a/modules/costs/app/components/my/time_tracking/time_entry_row.rb b/modules/costs/app/components/my/time_tracking/time_entry_row.rb
index 0a43655fc0c..312d9981aa4 100644
--- a/modules/costs/app/components/my/time_tracking/time_entry_row.rb
+++ b/modules/costs/app/components/my/time_tracking/time_entry_row.rb
@@ -77,10 +77,14 @@ module My
end
def subject
- render(Primer::Beta::Link.new(href: project_work_package_path(time_entry.project, time_entry.work_package),
- underline: true)) do
- "##{time_entry.work_package.id}"
- end + " - #{time_entry.work_package.subject}"
+ render(Primer::OpenProject::FlexLayout.new) do |flex|
+ flex.with_row do
+ render(WorkPackages::InfoLineComponent.new(work_package: time_entry.work_package))
+ end
+ flex.with_row do
+ render(Primer::Beta::Text.new(font_weight: :semibold)) { time_entry.work_package.subject }
+ end
+ end
end
def project