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