|
|
@ -18,6 +18,7 @@
|
|
|
|
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children") %>
|
|
|
|
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children") %>
|
|
|
|
<%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype") %>
|
|
|
|
<%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype") %>
|
|
|
|
<%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-contenttype") %>
|
|
|
|
<%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-contenttype") %>
|
|
|
|
|
|
|
|
<%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense") %>
|
|
|
|
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
|
|
|
|
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
|
|
|
|
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
|
|
|
|
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
|
|
|
|
<!-- <%= sort_header_tag('description', :caption => l(:field_description)) %> -->
|
|
|
|
<!-- <%= sort_header_tag('description', :caption => l(:field_description)) %> -->
|
|
|
@ -27,6 +28,9 @@
|
|
|
|
<% @containers.each do |container| %>
|
|
|
|
<% @containers.each do |container| %>
|
|
|
|
<% next if container.attachments.empty? -%>
|
|
|
|
<% next if container.attachments.empty? -%>
|
|
|
|
<% container.attachments.each do |file| %>
|
|
|
|
<% container.attachments.each do |file| %>
|
|
|
|
|
|
|
|
<% if file.is_public == 0 && !User.current.member_of?(@project) %>
|
|
|
|
|
|
|
|
<% next %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% if isTypeOk(file, selAttachType, selContentType) %>
|
|
|
|
<% if isTypeOk(file, selAttachType, selContentType) %>
|
|
|
|
<tr class="file <%= cycle("odd", "odd") %>">
|
|
|
|
<tr class="file <%= cycle("odd", "odd") %>">
|
|
|
|
<td class="filename" style="font-size: 13px; "><%= 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="filename" style="font-size: 13px; "><%= 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>
|
|
|
@ -41,6 +45,14 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="content_type"><%= file.show_suffix_type %></td>
|
|
|
|
<td class="content_type"><%= file.show_suffix_type %></td>
|
|
|
|
|
|
|
|
<td class="field_file_dense">
|
|
|
|
|
|
|
|
<span id="field_file_dense_id_label<%= file.id %>" style="white-space:nowrap;"><%= file.file_dense_str %></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span id="field_file_dense_id_edit<%= file.id %>" style="white-space:nowrap;">
|
|
|
|
|
|
|
|
<%= render :partial => 'project_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
|
|
|
|
|
|
|
|
:attachment => file} %>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td class="downloads"><%= file.downloads %></td>
|
|
|
|
<td class="downloads"><%= file.downloads %></td>
|
|
|
|
<!-- <td class="digest" width="300px"><%= file.description %></td> -->
|
|
|
|
<!-- <td class="digest" width="300px"><%= file.description %></td> -->
|
|
|
|
<td align="center">
|
|
|
|
<td align="center">
|
|
|
|