Sha256: fb68aa952618ced477785d27d00e46b80a1ef5e9c15e18262b79621b0cbdb6a5

Contents?: true

Size: 816 Bytes

Versions: 2

Compression:

Stored size: 816 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" %>
    </div>
  </div>
</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brightcontent-attachments-2.3.2 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.3.1 app/views/brightcontent/attachments/_attachment.html.erb