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
Use collapsed for past entries
Klaus Zandersf0ece697898d
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 2ce032fa8ad..1d4e6fd5aed 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@@ -3,7 +3,7 @@<%= render(My::TimeTracking::SubHeaderComponent.new(mode:, date:, view_mode: :list)) %><% range.each do |date| %>- <%= render(Primer::OpenProject::CollapsibleSection.new, collapsed: collapsed?(date)) do |section| %>+ <%= render(Primer::OpenProject::CollapsibleSection.new(collapsed: collapsed?(date))) do |section| %><% section.with_title { date_title(date) } %><% section.with_caption { date_caption(date) } %><% section.with_additional_information 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 b7b13d9f206..319c8eed7c1 100644--- a/modules/costs/app/components/my/time_tracking/list_component.rb+++ b/modules/costs/app/components/my/time_tracking/list_component.rb@@ -80,8 +80,8 @@ module My"#{entries_count} #{TimeEntry.model_name.human(count: entries_count)}"end- def collapsed?(_date)- false+ def collapsed?(date)+ date.past?enddef date_caption(date)