Sha256: 2d79d4f482a7b8038ee84238734b4e242355be8ca90ab860ebd63fcb15fd3e5e

Contents?: true

Size: 1012 Bytes

Versions: 4

Compression:

Stored size: 1012 Bytes

Contents

<%- dom_id = "papermill_asset_#{asset.id}" -%>
<%- delete_link = %{<a onclick="if(confirm('#{escape_javascript t("papermill.delete-confirmation", :resource => asset.name)}')){ jQuery.ajax({async:true,  dataType:'script', type:'delete', url:'#{papermill_url(asset)}'})}; return false;" href="#" class="delete"><img title="#{escape_javascript t("papermill.delete", :resource => asset.name)}" src="/papermill/images/delete.png" alt="delete"/></a>} %>

<div id="<%= dom_id %>" class="asset" title="<%= t("papermill.#{(thumbnail_style) ? "thumbnail-" : ""}edit-title", :resource => asset.name) %>" onDblClick="popup(jQuery(this).attr('rel')); return false;" rel="<%= edit_papermill_url(asset, :targetted_geometry => targetted_geometry) %>">
	<%= delete_link %>
	<%- if thumbnail_style -%>
	  <%= render :partial => "papermill/thumbnail_asset", :object => asset, :locals => {:thumbnail_style => thumbnail_style} %>
	<%- else -%>
	  <%= render :partial => "papermill/raw_asset", :object => asset %>
	<%- end -%>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
papermill-1.4.1 app/views/papermill/_asset.html.erb
papermill-1.4.0 app/views/papermill/_asset.html.erb
papermill-1.3.6 app/views/papermill/_asset.html.erb
papermill-1.3.5 app/views/papermill/_asset.html.erb