Sha256: ec5fce069f2bd311b82f47eeb872907870d4b29a1d5caf64d355c555433bd466
Contents?: true
Size: 1.87 KB
Versions: 93
Compression:
Stored size: 1.87 KB
Contents
<div class="resource_info"> <div class="value"> <label> <%= render_icon @attachment.icon_css_class, style: 'regular', size: 'lg' %> </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 %>" class="icon_button--right"> <%= render_icon(:clipboard, style: 'regular') %> </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) %>" class="icon_button--right"> <%= render_icon(:clipboard, style: 'regular') %> </a> </div> </div> <% case @attachment.icon_css_class %> <% when "file-image" %> <div class="attachment_preview_container image-preview"> <%= image_tag(@attachment.url, class: "full_width") %> </div> <% when "file-audio" %> <div class="attachment_preview_container player-preview"> <%= audio_tag(@attachment.url, preload: "none", controls: true, class: "full_width") %> </div> <% when "file-video" %> <div class="attachment_preview_container player-preview"> <%= video_tag(@attachment.url, preload: "metadata", controls: true, class: "full_width") %> </div> <% when "file-pdf" %> <iframe src="<%= @attachment.url %>" frameborder=0 class="full-iframe"> Your browser does not support frames. </iframe> <% end %> <script type="text/javascript"> $(function() { var clipboard = new Clipboard('.icon_button--right'); clipboard.on('success', function(e) { Alchemy.growl('<%= Alchemy.t("Copied to clipboard") %>'); e.clearSelection(); }); Alchemy.currentDialog().dialog.on('DialogClose.Alchemy', function() { clipboard.destroy(); }); }); </script>
Version data entries
93 entries across 93 versions & 1 rubygems