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
add IDs to things we want to replace via turbo
Klaus Zanders25c8e889f681
diff --git a/modules/costs/app/components/my/time_tracking/list_component.html.erb b/modules/costs/app/components/my/time_tracking/list_component.html.erbindex 1d4e6fd5aed..64d1123ab1e 100644--- a/modules/costs/app/components/my/time_tracking/list_component.html.erb+++ b/modules/costs/app/components/my/time_tracking/list_component.html.erb@@ -8,8 +8,8 @@<% section.with_caption { date_caption(date) } %><% section.with_additional_information do %><%=- render(Primer::Beta::Text.new(color: :muted)) { "#{date_additional(date)} - " } +- render(Primer::Beta::Text.new) { total_hours_for(date) }+ render(Primer::Beta::Text.new(color: :muted, id: "time-entries-count-#{date.iso8601}")) { "#{entry_count_for(date)} - " } ++ render(Primer::Beta::Text.new(id: "time-entries-total-#{date.iso8601}")) { total_hours_for(date) }%><% end %><% section.with_collapsible_content do %>diff --git a/modules/costs/app/components/my/time_tracking/list_component.rb b/modules/costs/app/components/my/time_tracking/list_component.rbindex 319c8eed7c1..048481c8006 100644--- a/modules/costs/app/components/my/time_tracking/list_component.rb+++ b/modules/costs/app/components/my/time_tracking/list_component.rb@@ -75,7 +75,7 @@ module Myendend- def date_additional(date)+ def entry_count_for(date)entries_count = grouped_time_entries[date].size"#{entries_count} #{TimeEntry.model_name.human(count: entries_count)}"end