Sha256: c4f5ba7acc30f0e914b5c6c3aeb3f80b61f5abd47e90d5afd88a2a99f582dda6

Contents?: true

Size: 1.54 KB

Versions: 9

Compression:

Stored size: 1.54 KB

Contents

<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) %>
  </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">
      <%= 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>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
papermill-1.0.4 app/views/papermill/edit.html.erb
papermill-1.0.3 app/views/papermill/edit.html.erb
papermill-1.0.2 app/views/papermill/edit.html.erb
papermill-1.0.1 app/views/papermill/edit.html.erb
papermill-1.0.0 app/views/papermill/edit.html.erb
papermill-0.16.3 app/views/papermill/edit.html.erb
papermill-0.16.2 app/views/papermill/edit.html.erb
papermill-0.16.1 app/views/papermill/edit.html.erb
papermill-0.16.0 app/views/papermill/edit.html.erb