2024-01-16 00:17:55 +08:00
|
|
|
<div class="activity-card" data-e2e="e2e-CO-activities-activityCard">
|
|
|
|
<div class="activity-text" data-e2e="e2e-CO-activities-activityText">
|
2019-04-10 21:45:17 +08:00
|
|
|
<% if activity.old_activity? %>
|
|
|
|
<%= sanitize_input(activity.message) %>
|
|
|
|
<% else %>
|
|
|
|
<%= generate_activity_content(activity) %>
|
2019-02-27 23:02:53 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2024-01-16 00:17:55 +08:00
|
|
|
<div class="activity-info" data-e2e="e2e-CO-activities-activityInfo">
|
2019-08-08 21:51:08 +08:00
|
|
|
<div class="activity-timestamp">
|
|
|
|
<%= activity.created_at.strftime('%H:%M') %>
|
|
|
|
</div>
|
|
|
|
<div class="navigational-breadcrumbs">
|
|
|
|
<% unless activity.old_activity? || !activity.subject_type.present?%>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "global_activities/references/#{activity.subject_type.underscore}",
|
2020-02-07 20:53:25 +08:00
|
|
|
locals: {
|
|
|
|
team: activity.team,
|
|
|
|
subject: activity.subject,
|
|
|
|
breadcrumbs: activity.breadcrumbs,
|
|
|
|
values: activity.values,
|
|
|
|
type_of: activity.type_of
|
2019-08-08 21:51:08 +08:00
|
|
|
} %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-10 21:45:17 +08:00
|
|
|
</div>
|