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 activity description
Christophe Bliard9bf276ee350b
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erbindex d544de942e3..fab3ca7713d 100644--- a/app/views/activities/index.html.erb+++ b/app/views/activities/index.html.erb@@ -50,12 +50,20 @@ See COPYRIGHT and LICENSE files for more details.<%# => Update colour to grey/silver? %>updated by <%= avatar(e.event_author, size: 'mini') if e.respond_to?(:event_author) %> <span class="spot-caption spot-caption_bold"><%= link_to_user(e.event_author) if e.respond_to?(:event_author) %></span> on <%= format_time(e.event_datetime.to_time, true) %></div>- <ul class="op-project-activity-list--item-details">- <% e.journal.details.each do |detail| -%>- <li class="op-project-activity-list--item-detail"><%= e.journal.render_detail(detail) %></li>- <% end -%>- </ul>+ <% if e.event_description.present? -%>+ <div class="op-project-activity-list--item-description">+ <%= truncate_formatted_text(e.event_description) %>+ </div>+ <% end -%>++ <% if e.journal.details.any? -%>+ <ul class="op-project-activity-list--item-details">+ <% e.journal.details.each do |detail| -%>+ <li class="op-project-activity-list--item-detail"><%= e.journal.render_detail(detail) %></li>+ <% end -%>+ </ul>+ <% end -%></li><% end -%>diff --git a/frontend/src/global_styles/content/_project_activity_list.sass b/frontend/src/global_styles/content/_project_activity_list.sassindex 41d01ff18bb..df816b299bf 100644--- a/frontend/src/global_styles/content/_project_activity_list.sass+++ b/frontend/src/global_styles/content/_project_activity_list.sass@@ -19,6 +19,10 @@color: $spot-color-basic-gray-2margin-bottom: $spot-spacing-0_5+ &-description+ @include spot-body-small+ color: $spot-color-basic-gray-2+&-details@include spot-body-smalllist-style-type: disc