|
|
|
@ -10,24 +10,28 @@
|
|
|
|
|
<col class="vzebra-odd"/>
|
|
|
|
|
<col class="vzebra-even"/>
|
|
|
|
|
<!-- <col class="vzebra-odd"/> -->
|
|
|
|
|
</colgroup>
|
|
|
|
|
<thead>
|
|
|
|
|
</colgroup>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure") %>
|
|
|
|
|
<%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
|
|
|
|
|
<%= 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('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('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
|
|
|
|
|
<!-- <%= sort_header_tag('description', :caption => l(:field_description)) %> -->
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<% @containers.each do |container| %>
|
|
|
|
|
<% next if container.attachments.empty? -%>
|
|
|
|
|
<% container.attachments.each do |file| %>
|
|
|
|
|
<% if isTypeOk(file,selAttachType,selContentType) %>
|
|
|
|
|
<% if file.is_public == 0 && !User.current.member_of?(@project) %>
|
|
|
|
|
<% next %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if isTypeOk(file, selAttachType, selContentType) %>
|
|
|
|
|
<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="created_on"><%#= format_time(file.created_on) %></td> -->
|
|
|
|
@ -37,10 +41,18 @@
|
|
|
|
|
|
|
|
|
|
<span id="attach_type_id_edit<%= file.id %>" style="white-space:nowrap;">
|
|
|
|
|
<%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes,
|
|
|
|
|
:attachment => file,:contentype=>selContentType} %>
|
|
|
|
|
:attachment => file, :contentype => selContentType} %>
|
|
|
|
|
</span>
|
|
|
|
|
</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 => 'course_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
|
|
|
|
|
:attachment => file} %>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="downloads"><%= file.downloads %></td>
|
|
|
|
|
<!-- <td class="digest" width="300px"><%= file.description %></td> -->
|
|
|
|
|
<td align="center">
|
|
|
|
|