mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
5dd9a7adaf
* Fix attachments for protocols.io importer [SCI-7843] * Fix protocols io import for multiple step cases [SCI-7843]
25 lines
584 B
Text
25 lines
584 B
Text
<% if attachments.size.positive? %>
|
|
<div class="col-xs-12">
|
|
<hr>
|
|
</div>
|
|
<div class="col-xs-12 attachments-actions">
|
|
|
|
<div class="title">
|
|
<h4>
|
|
<%= t('protocols.steps.files', count: attachments.size) %>
|
|
</h4>
|
|
</div>
|
|
<div>
|
|
<div class="attachemnts-header pull-right">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-12 attachments">
|
|
<% attachments.each do |a| %>
|
|
<%= render partial: 'assets/new_asset.html.erb',
|
|
locals: { file_url: a[:url], file_name: a[:name] } %>
|
|
<% end %>
|
|
</div>
|
|
<hr>
|
|
<% end %>
|