Sha256: ad501ee5ee43d25b1d9e964717dba32529d90bcbae093ce2a5dea988e826a861

Contents?: true

Size: 852 Bytes

Versions: 1

Compression:

Stored size: 852 Bytes

Contents

<div class="newAttachments <%= newAttachments[:class] %>">
  <ul class="attachmentQueue">
  </ul>

  <div class="dropAttachments"></div>
  <a class="pickAttachments btn" href="javascript://"><%= t('media_magick.select') %></a>
  <a class="uploadAttachments btn" href="javascript://"><%= t('media_magick.upload') %></a>
</div>
<ul class="loadedAttachments <%= loadedAttachments[:class] %>">
  <% model.send(relations).each do |attachment| %>
    <% if partial %>
      <%= render partial, attachment: attachment %>
    <% elsif attachment.class::TYPE.to_s == 'file' %>
      <%= render :partial => "/file", :locals => { :attachment => attachment } %>
    <% elsif attachment.class::TYPE.to_s == 'image' %>
      <%= render :partial => "/image", :locals => { :attachment => attachment, :model => nil, :relation => nil } %>
    <% end %>
  <% end %>
</ul>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
media_magick-0.1.0 app/views/_upload.html.erb