2019-04-10 21:45:17 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<% if activity.old_activity? %>
|
|
|
|
<%= sanitize_input(activity.message) %>
|
|
|
|
<% else %>
|
|
|
|
<%= generate_activity_content(activity) %>
|
2019-02-27 23:02:53 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-10 21:45:17 +08:00
|
|
|
<div class="pull-left activity-timestamp">
|
|
|
|
<%= activity.created_at.strftime('%H:%M') %>
|
|
|
|
</div>
|
|
|
|
<div class="row navigational-breadcrumbs">
|
|
|
|
<% unless activity.old_activity? || !activity.subject_type.present?%>
|
|
|
|
<%= render partial: "global_activities/references/#{activity.subject_type.underscore}.html.erb",
|
2019-04-15 17:35:30 +08:00
|
|
|
locals: {
|
|
|
|
team: activity.team,
|
|
|
|
subject: activity.subject,
|
|
|
|
breadcrumbs: activity.breadcrumbs,
|
|
|
|
values: activity.values,
|
|
|
|
type_of: activity.type_of
|
|
|
|
} %>
|
2019-04-10 21:45:17 +08:00
|
|
|
<% else %>
|
|
|
|
<div class="row"> </div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|