mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
6f76e86171
* Implement results tab for shareable task link [SCI-8753]
22 lines
957 B
Text
22 lines
957 B
Text
<div class="step-attachments">
|
|
<div class="attachments-actions">
|
|
<div class="title">
|
|
<h3> <%= t('protocols.steps.files', count: attachments.length) %> </h3>
|
|
</div>
|
|
</div>
|
|
<div class="attachments">
|
|
<% attachments.each do |attachment| %>
|
|
<% if attachment.file.attached? %>
|
|
<%= render partial: "shareable_links/my_modules/step_attachments/#{ attachment.view_mode }", locals: { asset: attachment, show_context: true } %>
|
|
<%= render partial: "shareable_links/my_modules/step_attachments/file_preview", locals: { asset: attachment, gallery: attachments.pluck(:id) } %>
|
|
<% else %>
|
|
<%= attachment.view_mode %>
|
|
<%= render partial: "shareable_links/my_modules/step_attachments/empty", locals: { asset: attachment } %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= javascript_include_tag 'shared/file_preview' %>
|
|
<%= javascript_include_tag 'pdf_js' %>
|
|
<%= stylesheet_link_tag 'pdf_js_styles' %>
|