Sha256: d257a897c29b09a5785ae1b0cb9f6b8cdb7d8d59fabb037959b28592815d6a65
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
<div class="resource_info"> <div class="value"> <label> <%= render_icon @attachment.icon_css_class %> </label> <p><%= @attachment.file_name %></p> </div> <div class="value with-icon"> <label><%= Alchemy::Attachment.human_attribute_name(:url) %></label> <p><%= @attachment.url %></p> <a data-clipboard-text="<%= @attachment.url %>" data-clipboard-success-text="<%= Alchemy.t("Copied to clipboard") %>" class="icon_button--right"> <%= render_icon(:clipboard) %> </a> </div> <div class="value with-icon"> <label><%= Alchemy::Attachment.human_attribute_name(:download_url) %></label> <p><%= @attachment.url(download: true) %></p> <a data-clipboard-text="<%= @attachment.url(download: true) %>" data-clipboard-success-text="<%= Alchemy.t("Copied to clipboard") %>" class="icon_button--right"> <%= render_icon(:clipboard) %> </a> </div> </div> <% case @attachment.file_mime_type %> <% when *Alchemy::Filetypes::IMAGE_FILE_TYPES %> <div class="attachment_preview_container image-preview"> <%= image_tag(@attachment.url, class: "full_width") %> </div> <% when *Alchemy::Filetypes::AUDIO_FILE_TYPES %> <div class="attachment_preview_container player-preview"> <%= audio_tag(@attachment.url, preload: "none", controls: true, class: "full_width") %> </div> <% when *Alchemy::Filetypes::VIDEO_FILE_TYPES %> <div class="attachment_preview_container player-preview"> <%= video_tag(@attachment.url, preload: "metadata", controls: true, class: "full_width") %> </div> <% when "application/pdf" %> <iframe src="<%= @attachment.url %>" frameborder=0 class="full-iframe"> Your browser does not support frames. </iframe> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-7.1.0.pre.b2 | app/views/alchemy/admin/attachments/show.html.erb |