This commit is contained in:
nieguanghui 2014-01-13 21:32:34 +08:00
parent 95e77464ad
commit b2f2097cd4
1 changed files with 15 additions and 3 deletions

View File

@ -13,6 +13,7 @@
display: inline-block;
width: 49%;
margin: 10px auto;
vertical-align: top;
padding: 0px 2%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@ -48,6 +49,16 @@
.line_block table td{
height: 2em;
}
.filename {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 247px;
}
/*.filename a:after {
content: "...";
}*/
</style>
<% content_for :top_field do%>
@ -60,9 +71,10 @@
<% end %>
<div class="resource_sum">
<% @attach_array.each do |c|%>
<% @attach_array.each do |k|%>
<div class="line_block">
<p>
c
</p>
<table style="width: 100%">
<thead>
@ -72,9 +84,9 @@
</tr>
</thead>
<tbody>
<% c.each do |c1|%>
<% k.each do |c1|%>
<tr class="<%= cycle 'odd', 'even' %>">
<td style="width:62%;"><%= link_to_attachment c1 %></td>
<td class="filename" style="width:62%;"><%= link_to_attachment c1 %></td>
<td style="width:38%;"><%= c1.downloads %> </td>
</tr>
<% end %>