scinote-web/app/views/steps/attachments/_preview_list.html.erb
2023-06-21 14:38:32 +02:00

25 lines
575 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',
locals: { file_url: a[:url], file_name: a[:name] } %>
<% end %>
</div>
<hr>
<% end %>