mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
22 lines
No EOL
687 B
Text
22 lines
No EOL
687 B
Text
<div class="panel panel-default panel-step-attachment">
|
|
<div class="panel-heading">
|
|
<span class="glyphicon glyphicon-file"></span>
|
|
<%= t("protocols.steps.new.asset_panel_title") %>
|
|
<div class="pull-right">
|
|
<%= ff.remove_nested_fields_link do %>
|
|
<span class="glyphicon glyphicon-remove"></span>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<% if ff.object.file.exists? %>
|
|
<% if !(ff.object.file.content_type =~ /^image/).nil? %>
|
|
<%= image_tag ff.object.file.url(:medium) %>
|
|
<% else %>
|
|
<%= ff.object.file_file_name %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= ff.file_field :file %>
|
|
<% end %>
|
|
</div>
|
|
</div> |