mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
<% step ||= report_element.step %>
|
|
<% comments = step.step_comments.order(created_at: :desc) %>
|
|
<% export_all = defined?(export_all) && export_all %>
|
|
<div class="report-element report-comments-element report-step-comments-element">
|
|
<div class="report-element-header">
|
|
<div class="row">
|
|
<div class="pull-left comments-icon">
|
|
<span class="fas fa-comment"></span>
|
|
</div>
|
|
<div class="pull-left comments-name">
|
|
<%= t('projects.reports.elements.step_comments.name', step: step.name) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="report-element-body">
|
|
<div class="row">
|
|
<div class="col-xs-12 comments-container simple">
|
|
<% if comments.present? %>
|
|
<ul class="no-style content-comments">
|
|
<% comments.each do |comment| %>
|
|
<%= render partial: 'shared/comments/item.html.erb',
|
|
locals: { comment: comment, readonly: true, report: true, export_all: export_all } %>
|
|
<% end %>
|
|
</ul>
|
|
<% else %>
|
|
<em><%= t('projects.reports.elements.step_comments.no_comments') %></em>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% if defined?(children) %>
|
|
<div class="report-element-children">
|
|
<%= children %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|