2022-11-29 22:41:57 +08:00
|
|
|
<% if attachments.size.positive? %>
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<hr>
|
2019-06-27 19:10:28 +08:00
|
|
|
</div>
|
2022-11-29 22:41:57 +08:00
|
|
|
<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>
|
2019-06-27 19:10:28 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-11-29 22:41:57 +08:00
|
|
|
<div class="col-xs-12 attachments">
|
|
|
|
<% attachments.each do |a| %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'assets/new_asset',
|
2022-11-29 22:41:57 +08:00
|
|
|
locals: { file_url: a[:url], file_name: a[:name] } %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<% end %>
|