Sha256: d4889900f47ba3824dc141347945de461b8598ac40547c032eb48d3d73b5de26

Contents?: true

Size: 656 Bytes

Versions: 17

Compression:

Stored size: 656 Bytes

Contents

<%= div_for attachment do %>
  <% if attachment.image? %>
    <%= image_tag attachment.url(:brightcontent) %>
    <%= link_to "Insert", nil, class: "insert insert_image btn btn-mini", data: { insert_image: attachment.url(:main) } %>
  <% else %>
    <div class="attachment-file"><%= attachment.asset_file_name %></div>
    <%= link_to "Insert", nil, class: "insert insert_link btn btn-mini", data: { insert_url: attachment.url(:original), insert_name: attachment.asset_file_name } %>
  <% end %>
  <%= link_to "Delete", destroy_attachment_path(attachment.id), method: :delete, confirm: "Are you sure?", class: "delete btn btn-danger btn-mini" %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
brightcontent-attachments-2.0.33 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.31 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.30 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.29 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.28 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.27 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.26 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.25 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.24 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.23 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.22 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.21 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.20 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.19 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.18 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.17 app/views/brightcontent/attachments/_attachment.html.erb
brightcontent-attachments-2.0.16 app/views/brightcontent/attachments/_attachment.html.erb