mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-18 05:20:54 +08:00
24 lines
966 B
Text
24 lines
966 B
Text
<div class="activity-card">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<% if activity.owner.present? %>
|
|
<%= popover_for_user_name(activity.owner, activity.team, false, true) %>
|
|
<% else %>
|
|
<strong><%= activity.owner_id %></strong>
|
|
<% end %>
|
|
<%= generate_activity_content(activity) %>
|
|
</div>
|
|
</div>
|
|
<div class="pull-left activity-timestamp">
|
|
<%= activity.created_at.strftime('%H:%M') %>
|
|
</div>
|
|
<div class="row navigational-breadcrumbs">
|
|
<% if activity.subject_type.present? %>
|
|
<%= render partial: "global_activities/references/#{activity.subject_type.underscore}.html.erb",
|
|
locals: { subject: activity.subject, breadcrumbs: activity.values[:breadcrumbs] } %>
|
|
<% else %>
|
|
<%= render partial: "global_activities/references/result.html.erb",
|
|
locals: { subject: activity.subject, breadcrumbs: activity.values[:breadcrumbs] } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|