scinote-web/app/views/global_activities/_activity.html.erb
2019-03-19 14:01:06 +01:00

23 lines
767 B
Text

<div class="activity-card">
<div class="row">
<div class="col-xs-12">
<% if activity.old_activity? %>
<%= activity.message&.html_safe %>
<% else %>
<%= activity.id %>
<%= generate_activity_content(activity).html_safe %>
<% end %>
</div>
</div>
<div class="pull-left activity-timestamp">
<%= activity.created_at.strftime('%H:%M') %>
</div>
<div class="row navigational-breadcrumbs">
<% 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 %>
</div>
</div>