mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
<% result ||= report_element.result %>
|
|
<% comments = result.result_comments.order(created_at: :desc) %>
|
|
<% export_all = defined?(export_all) && export_all %>
|
|
<% if comments.present? %>
|
|
<div class="report-element report-comments-element report-result-comments-element">
|
|
<div class="report-element-header">
|
|
<div class="row">
|
|
<div class="pull-left comments-name">
|
|
<%= t('projects.reports.elements.result_comments.name', result: result.name) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="report-element-body">
|
|
<div class="row">
|
|
<div class="col-xs-12 comments-container simple">
|
|
<ul class="no-style content-comments">
|
|
<% comments.each do |comment| %>
|
|
<%= render partial: 'shared/comments/item',
|
|
locals: { comment: comment, readonly: true, report: true, export_all: export_all } %>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% if defined?(children) %>
|
|
<div class="report-element-children">
|
|
<%= children %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|