Sha256: 3dfcd0f87b31dca011f2a7a10cd04e7a9a350fd628dd0f43027fe1e9829d42c0

Contents?: true

Size: 1.41 KB

Versions: 6

Compression:

Stored size: 1.41 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

6 entries across 6 versions & 1 rubygems

Version Path
papermill-1.1.2 app/views/papermill/edit.html.erb
papermill-1.1.1 app/views/papermill/edit.html.erb
papermill-1.1.0 app/views/papermill/edit.html.erb
papermill-1.0.7 app/views/papermill/edit.html.erb
papermill-1.0.6 app/views/papermill/edit.html.erb
papermill-1.0.5 app/views/papermill/edit.html.erb