|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
<% selAttachType =@attachtype %>
|
|
|
|
|
<% selContentType =@contenttype %>
|
|
|
|
|
<% attachmenttypes = @project.attachmenttypes %>
|
|
|
|
|
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
|
|
|
|
|
<% edit_allowed = User.current.allowed_to?(:manage_files, @project) %>
|
|
|
|
@ -35,7 +37,14 @@
|
|
|
|
|
<td class="filename" style="font-size: 13px; width: 240px; "><%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %></td>
|
|
|
|
|
<td class="created_on"><%= format_time(file.created_on) %></td>
|
|
|
|
|
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
|
|
|
|
|
<td class="attach_type"><%= file.attachmentstype.typeName %></td>
|
|
|
|
|
<td class="attach_type">
|
|
|
|
|
<div id="attach_type_id_label<%= file.id %>" style="white-space:nowrap;"><%= file.attachmentstype.typeName %></div>
|
|
|
|
|
|
|
|
|
|
<div id="attach_type_id_edit<%= file.id %>" style="white-space:nowrap;">
|
|
|
|
|
<%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes,
|
|
|
|
|
:attachment => file,:contentype=>selContentType} %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="content_type"><%= file.show_suffix_type %></td>
|
|
|
|
|
<td class="downloads"><%= file.downloads %></td>
|
|
|
|
|
<!-- <td class="digest" width="300px"><%= file.description %></td> -->
|
|
|
|
|