app/views/papermill/edit.html.erb in papermill-1.1.2 vs app/views/papermill/edit.html.erb in papermill-1.1.3
- old
+ new
@@ -1,8 +1,14 @@
<div id="papermill-box">
<div id="left">
- <%= link_to(@asset.image? ? image_tag(@asset.url("400x>")) : t("file_type", :type => @asset.content_type, :scope => 'papermill'), @asset.url, :popup => true) %>
+ <% if @asset.image? %>
+ <%= link_to image_tag(@asset.url("400x400>")), @asset.url, :popup => true %>
+ <%# image_tag(@asset.url("400x400>"), :onDblClick => "popup('#{crop_papermill_path(@asset, :target => "original")}'); return false;", :title => I18n.t("papermill.thumbnail-edit-title", :resource => @asset.name)) %>
+ <div style="clear:both;"></div>
+ <% else %>
+ <%= link_to t("file_type", :type => @asset.content_type, :scope => 'papermill'), @asset.url, :popup => true %>
+ <% end -%>
</div>
<div id="right">
<div id="read-only">
<table border="0">
<tr><td class="left-cell"><%= t("papermill.name") %> </td><td><%= @asset.name %></td></tr>
@@ -18,9 +24,10 @@
</div>
<div id="read-write">
<%= render :partial => 'form' %>
</div>
</div>
+
<div style="clear:both;"></div>
<p id="footer">
<%= t("papermill.location") + @asset.file.path %><br />
<%= t("papermill.url") + @asset.url %>
</p>