<% if activity.old_activity? %>
<%= activity.message&.html_safe %>
<% else %>
<%= activity.id %>
<%= generate_activity_content(activity).html_safe %>
<% end %>
<%= activity.created_at.strftime('%H:%M') %>
<% unless activity.old_activity? %>
<% if activity.subject_type.present? %>
<%= render partial: "global_activities/references/#{activity.subject_type.underscore}.html.erb",
locals: { subject: activity.subject, breadcrumbs: activity.breadcrumbs } %>
<% end %>
<% end %>