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