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 %>
|
2021-06-10 16:59:34 +08:00
|
|
|
<div class="report-element report-comments-element report-step-comments-element">
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="report-element-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="pull-left comments-icon">
|
2018-05-22 22:55:58 +08:00
|
|
|
<span class="fas fa-comment"></span>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-left comments-name">
|
2021-06-10 16:59:34 +08:00
|
|
|
<%= t('projects.reports.elements.step_comments.name', step: step.name) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="report-element-body">
|
|
|
|
<div class="row">
|
2019-06-14 22:20:13 +08:00
|
|
|
<div class="col-xs-12 comments-container simple">
|
2021-06-10 16:59:34 +08:00
|
|
|
<% if comments.present? %>
|
2019-06-14 22:20:13 +08:00
|
|
|
<ul class="no-style content-comments">
|
2016-02-12 23:52:43 +08:00
|
|
|
<% comments.each do |comment| %>
|
2019-12-05 20:27:17 +08:00
|
|
|
<%= render partial: 'shared/comments/item.html.erb',
|
2021-06-08 20:21:34 +08:00
|
|
|
locals: { comment: comment, readonly: true, report: true, export_all: export_all } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
2019-10-17 19:30:14 +08:00
|
|
|
<% else %>
|
2021-06-10 16:59:34 +08:00
|
|
|
<em><%= t('projects.reports.elements.step_comments.no_comments') %></em>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-20 20:16:39 +08:00
|
|
|
<% if defined?(children) %>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|