Sha256: d05ae85ddcfda4839a618047b4794c6b79573722cbbc56186e3eb1c9c97c24af

Contents?: true

Size: 833 Bytes

Versions: 12

Compression:

Stored size: 833 Bytes

Contents

<li class="list-group-item attachment" data-attachment-id="<%= attachment.id %>">
  <div class="media">
    <% if attachment.image? %>
      <%= image_tag attachment.url(:brightcontent), class: "media-object pull-left" %>
    <% end %>
    <div class="media-body">
      <h4 class="attachment-file media-heading"><%= attachment.asset_file_name %></h4>
      <% if attachment.image? %>
        <%= link_to "Insert", attachment.url(:main), class: "insert insert-image btn btn-primary btn-xs" %>
      <% else %>
        <%= link_to "Insert", attachment.url(:original), class: "insert insert-link btn btn-primary btn-xs", data: { name: attachment.asset_file_name } %>
      <% end %>
      <%= link_to "Delete", destroy_attachment_path(attachment.id), class: "delete btn btn-danger btn-xs", method: :delete %>
    </div>
  </div>
</li>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
brightcontent-attachments-2.6.0 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.5.1 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.5.0 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.6 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.5 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.4 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.3 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.2 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.1 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.4.0 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.3.4 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.3.3 app/views/brightcontent/attachments/_attachment.html.erb