modified something
This commit is contained in:
parent
db60ece59f
commit
dadf9da477
|
@ -1,7 +1,7 @@
|
||||||
<!-- <h3> --><!-- %=l(:label_attachment_plural)%></h3 -->
|
<!-- <h3> --><!-- %=l(:label_attachment_plural)%></h3 -->
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
line-height: 25px;
|
line-height: 20px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
#ver-zebra
|
#ver-zebra
|
||||||
|
@ -21,6 +21,7 @@
|
||||||
border-right: 1px solid #fff;
|
border-right: 1px solid #fff;
|
||||||
border-left: 1px solid #fff;
|
border-left: 1px solid #fff;
|
||||||
color: #039;
|
color: #039;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
#ver-zebra td
|
#ver-zebra td
|
||||||
{
|
{
|
||||||
|
@ -46,6 +47,11 @@
|
||||||
{
|
{
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-bottom: 1px solid #d6dfff;
|
border-bottom: 1px solid #d6dfff;
|
||||||
|
}
|
||||||
|
.filename{
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -83,14 +89,14 @@
|
||||||
<% next if container.attachments.empty? -%>
|
<% next if container.attachments.empty? -%>
|
||||||
<% if container.is_a?(Version) -%>
|
<% if container.is_a?(Version) -%>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="6" align="left">
|
<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") %>
|
<%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package", :style => "color: #666666;") %>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% container.attachments.each do |file| %>
|
<% container.attachments.each do |file| %>
|
||||||
<tr class="file <%= cycle("odd", "even") %>">
|
<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="created_on"><%= format_time(file.created_on) %></td>
|
||||||
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
|
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
|
||||||
<td class="downloads"><%= file.downloads %></td>
|
<td class="downloads"><%= file.downloads %></td>
|
||||||
|
|
Loading…
Reference in New Issue