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

WIP: Reformat the comment activity block

Mir Bhatiacb0aebb5b1b3
diff --git a/app/components/activities/item_component.html.erb b/app/components/activities/item_component.html.erb
index 1acaf01cfb1..bd2610f92f4 100644
--- a/app/components/activities/item_component.html.erb
+++ b/app/components/activities/item_component.html.erb
@@ -12,7 +12,14 @@
%>
<% if @event.event_description.present? -%>
<div class="op-activity-list--item-description">
- <%= helpers.truncate_formatted_text(@event.event_description) %>
+ <% if @event.journal.journable_type == "WorkPackage" -%>
+ <ul class="op-activity-list--item-description-comment">
+ <li class="op-activity-list--item-description-detail"><strong>Comment added</strong></li>
+ <%= helpers.truncate_formatted_text(@event.event_description) %>
+ </ul>
+ <% else -%>
+ <%= helpers.truncate_formatted_text(@event.event_description) %>
+ <% end -%>
</div>
<% end -%>
<% if display_details? -%>
diff --git a/frontend/src/global_styles/content/_activity_list.sass b/frontend/src/global_styles/content/_activity_list.sass
index 140e1229542..84ec89408c1 100644
--- a/frontend/src/global_styles/content/_activity_list.sass
+++ b/frontend/src/global_styles/content/_activity_list.sass
@@ -23,12 +23,24 @@
@include spot-body-small
color: $spot-color-basic-gray-2
+ &-comment
+ @include spot-body-small
+ list-style-type: disc
+ padding: $spot-spacing-0_5
+ padding-left: $spot-spacing-2
+ margin: 0
+
+ &-detail
+ &:not(:last-child)
+ margin-bottom: $spot-spacing-0_25
+
&-details
@include spot-body-small
list-style-type: disc
padding: $spot-spacing-0_5
padding-left: $spot-spacing-2
margin: 0
+ color: $spot-color-basic-gray-2
&-detail
&:not(:last-child)