mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
26 lines
902 B
Text
26 lines
902 B
Text
<div class="activity-card">
|
|
<div class="activity-text">
|
|
<% if activity.old_activity? %>
|
|
<%= sanitize_input(activity.message) %>
|
|
<% else %>
|
|
<%= generate_activity_content(activity) %>
|
|
<% end %>
|
|
</div>
|
|
<div class="activity-info">
|
|
<div class="activity-timestamp">
|
|
<%= activity.created_at.strftime('%H:%M') %>
|
|
</div>
|
|
<div class="navigational-breadcrumbs">
|
|
<% 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,
|
|
values: activity.values,
|
|
type_of: activity.type_of
|
|
} %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|