|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!-- <h3> --><!-- %=l(:label_attachment_plural)%></h3 -->
|
|
|
|
|
<style>
|
|
|
|
|
table {
|
|
|
|
|
line-height: 25px;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
#ver-zebra
|
|
|
|
@ -21,6 +21,7 @@
|
|
|
|
|
border-right: 1px solid #fff;
|
|
|
|
|
border-left: 1px solid #fff;
|
|
|
|
|
color: #039;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
#ver-zebra td
|
|
|
|
|
{
|
|
|
|
@ -46,6 +47,11 @@
|
|
|
|
|
{
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-bottom: 1px solid #d6dfff;
|
|
|
|
|
}
|
|
|
|
|
.filename{
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
@ -83,14 +89,14 @@
|
|
|
|
|
<% next if container.attachments.empty? -%>
|
|
|
|
|
<% if container.is_a?(Version) -%>
|
|
|
|
|
<tr>
|
|
|
|
|
<th colspan="6" align="left">
|
|
|
|
|
<%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
|
|
|
|
|
<th colspan="6" align="left" style="line-height: 30px; font-size: 14px; ">
|
|
|
|
|
<%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package", :style => "color: #666666;") %>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end -%>
|
|
|
|
|
<% container.attachments.each do |file| %>
|
|
|
|
|
<tr class="file <%= cycle("odd", "even") %>">
|
|
|
|
|
<td class="filename" style="font-size: 12px; width: 240px; "><%= link_to_attachment file, :download => true, :title => file.description, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %></td>
|
|
|
|
|
<td class="filename" style="font-size: 13px; max-width: 240px; "><%= link_to_attachment file, :download => true, :title => file.description, :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="downloads"><%= file.downloads %></td>
|
|
|
|
|