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 "The changes were retracted" when displaying empty journals on the activities page.
Dombi Attila9dd0b492498f
diff --git a/app/components/activities/item_component.html.erb b/app/components/activities/item_component.html.erbindex c0d5c6f5dce..3b60c4d834f 100644--- a/app/components/activities/item_component.html.erb+++ b/app/components/activities/item_component.html.erb@@ -67,5 +67,11 @@ See COPYRIGHT and LICENSE files for more details.<li class="op-activity-list--item-detail"><%= link_to "Details", @event.event_url %></li><% end -%></ul>+ <% elsif noop? -%>+ <ul class="op-activity-list--item-details">+ <li class="op-activity-list--item-detail">+ <em><%= I18n.t(:"journals.changes_retracted") %></em>+ </li>+ </ul><% end -%></li>diff --git a/app/components/activities/item_component.rb b/app/components/activities/item_component.rbindex e5824bf301f..cbbf235aa78 100644--- a/app/components/activities/item_component.rb+++ b/app/components/activities/item_component.rb@@ -60,6 +60,10 @@ class Activities::ItemComponent < ViewComponent::Base # rubocop:disable OpenProjrendered_details.present?end+ def noop?+ !initial? && !deletion? && @event.journal.noop?+ end+def rendered_detailsif data[:details]render_event_details