Sha256: d46092766d7cb02568ec86ef591338a52443b8bac5dda5ea6513c9f6795eaf27
Contents?: true
Size: 790 Bytes
Versions: 7
Compression:
Stored size: 790 Bytes
Contents
<%= content_tag :div, :class => 'spud_media_picker_item', 'data-id' => media.id, 'data-type' => (media.is_image? ? 'img' : 'file'), 'data-url' => media.attachment_url, 'data-name' => media.attachment_file_name, 'data-size' => media.attachment_file_size, 'data-lastmod' => media.attachment_updated_at.blank? == false ? media.attachment_updated_at.strftime("%l:%M %p, %D") : '', 'data-protected' => (media.is_protected ? 'Yes' : 'No') do %> <span class="spud_media_picker_item_thumb"> <% if media.is_protected && media.is_image? %> <img src="<%= media.image_from_type %>"/> <% else %> <%= image_tag(media.image_from_type) %> <% end %> </span> <span class="spud_media_picker_item_filename"> <%= media.attachment_file_name %> </span> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems