Sha256: 0db99173c991ffa874ebcb83459a829537c0615054657dc4f9f115ea3816e26e

Contents?: true

Size: 1.49 KB

Versions: 9

Compression:

Stored size: 1.49 KB

Contents

<table cellspacing="1" cellpadding="0">
<tr>
  <th>Filename <small>(right-click for link)</small></th>
  <th>Content Type</th>
  <th>MetaData</th>
  <th>File Size</th>
  <th>Uploaded</th>
  <th>Delete</th>
</tr>
<% blog_root = request.relative_url_root -%>
<% for upload in resources -%>
<tr <%= alternate_class -%>>
  <td><%= link_to "#{blog_root}/files/#{upload.filename}", "#{blog_root}/files/#{upload.filename}" -%></td>
  <td>
    <%= task_edit_resource_mime(upload.mime, upload.id) %>
    <div id="edit-resource-mime-<%= upload.id %>" style="display:none;position:absolute;">
      <%= render :partial => "mime_edit", :locals => {:id => upload.id, :mime => upload.mime} %>
    </div>
  </td>
  <% if upload.itunes_metadata? %>
  <td>
    <%= task_edit_resource_metadata('Edit MetaData (+/-)', upload.id) %>
    <div id="edit-resource-metadata-<%= upload.id%>" style="display:none;position:absolute;">
      <%= render :partial => "metadata_edit" , :locals => {:id => upload.id, :resource => upload}%>
    </div>
  </td>
  <% else -%>
  <td>
    <%= task_add_resource_metadata('Add MetaData (+/-)', upload.id) %>
    <div id="add-resource-metadata-<%= upload.id%>" style="display:none;position:absolute;">
      <%= render :partial => "metadata_add", :locals => {:id => upload.id} %>
    </div>
  </td>
  <% end -%>
  <td><%=h upload.size rescue 0 -%> bytes</td>
  <td><%=h upload.created_at.strftime('%Y-%m-%d %H:%M:%S') -%></td>
  <td class="operation"><%= link_to_destroy upload -%></td>    
</tr>  
<% end -%>
</table>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-3.99.0 app/views/admin/resources/_resources.rhtml
typo-3.99.2 app/views/admin/resources/_resources.rhtml
typo-3.99.1 app/views/admin/resources/_resources.rhtml
typo-3.99.3 app/views/admin/resources/_resources.rhtml
typo-4.0.2 app/views/admin/resources/_resources.rhtml
typo-3.99.4 app/views/admin/resources/_resources.rhtml
typo-4.0.0 app/views/admin/resources/_resources.rhtml
typo-4.0.1 app/views/admin/resources/_resources.rhtml
typo-4.0.3 app/views/admin/resources/_resources.rhtml