2021-06-10 16:59:34 +08:00
|
|
|
<% step ||= report_element.step %>
|
2021-04-20 19:35:40 +08:00
|
|
|
<% comments = step.step_comments.order(created_at: :desc) %>
|
2021-06-08 20:21:34 +08:00
|
|
|
<% export_all = defined?(export_all) && export_all %>
|
2022-05-31 20:40:25 +08:00
|
|
|
<% if comments.present? %>
|
|
|
|
<div class="report-element report-comments-element report-step-comments-element">
|
|
|
|
<div class="report-element-header">
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="pull-left comments-name">
|
2022-05-31 20:40:25 +08:00
|
|
|
<%= t('projects.reports.elements.step_comments.name') %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-31 20:40:25 +08:00
|
|
|
<div class="report-element-body">
|
2022-06-24 20:34:00 +08:00
|
|
|
<div class="comments-container simple">
|
|
|
|
<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>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-31 20:40:25 +08:00
|
|
|
<% if defined?(children) %>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2022-05-31 20:40:25 +08:00
|
|
|
<% end %>
|