Sha256: 4078b1dfc5eea1f65a12c8642949f9b8a0685a140f21c7ee45bca508bfd344a3

Contents?: true

Size: 1.97 KB

Versions: 4

Compression:

Stored size: 1.97 KB

Contents

<div id="papermill-box">
  <div id="left">
    <%= link_to(@asset.image? ? image_tag(@asset.url("400x#{Papermill::PAPERMILL_DEFAULTS[:max_height]}>")) : t("file_type", :type => @asset.content_type, :scope => 'papermill'), @asset.url, :popup => true) %>
  </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>
        <tr><td class="left-cell"><%= t("papermill.content_type") %></td><td><%= @asset.content_type %></td></tr>
        <tr><td class="left-cell"><%= t("papermill.size") %>        </td><td><%= number_to_human_size(@asset.size.to_i) %></td></tr>
        <% if @asset.image? %>                                                                
        <tr><td class="left-cell"><%= t("papermill.width") %>       </td><td><%= @asset.width.to_i %>px</td></tr>
        <tr><td class="left-cell"><%= t("papermill.height") %>      </td><td><%= @asset.height.to_i %>px</td></tr>
        <% end %>                                                                             
        <tr><td class="left-cell"><%= t("papermill.created_at") %>  </td><td><%= I18n.l(@asset.created_at) %></td></tr>
        <tr><td class="left-cell"><%= t("papermill.updated_at") %>  </td><td><%= I18n.l(@asset.updated_at) %></td></tr>
      </table>
    </div>
    <div id="read-write">
      <form onsubmit="jQuery.ajax({data:jQuery.param(jQuery(this).serializeArray()), dataType:'script', type:'post', url:'/papermill/<%= @asset.id %>'}); return false;" method="post" action="/papermill/<%= @asset.id %>">
        <input type="hidden" value="put" name="_method"/>
        <% fields_for :papermill_asset, @asset do |form| %>
          <%= render :partial => 'form', :object => form %>
        <% end %>
      </form>
    </div>
  </div>
  <div style="clear:both;"></div>
  <p id="footer">
    <%= t("papermill.location") +  @asset.file.path %><br />
    <%= t("papermill.url") +  @asset.url %>
  </p>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
papermill-0.14.3 app/views/papermill/edit.html.erb
papermill-0.14.2 app/views/papermill/edit.html.erb
papermill-0.14.1 app/views/papermill/edit.html.erb
papermill-0.14.0 app/views/papermill/edit.html.erb