modified table style
This commit is contained in:
parent
fd25c5ed30
commit
d0d36186df
|
@ -90,7 +90,7 @@
|
|||
<% end -%>
|
||||
<% container.attachments.each do |file| %>
|
||||
<tr class="file <%= cycle("odd", "even") %>">
|
||||
<td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
|
||||
<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="created_on"><%= format_time(file.created_on) %></td>
|
||||
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
|
||||
<td class="downloads"><%= file.downloads %></td>
|
||||
|
|
|
@ -60,9 +60,10 @@
|
|||
<% end %>
|
||||
|
||||
<div class="resource_sum">
|
||||
<% 4.times do |c|%>
|
||||
<% @attach_array.each do |c|%>
|
||||
<div class="line_block">
|
||||
<p>热门<%=c%></p>
|
||||
<p>
|
||||
</p>
|
||||
<table style="width: 100%">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -71,10 +72,10 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @projects_attach.each do |c1|%>
|
||||
<% c.each do |c1|%>
|
||||
<tr class="<%= cycle 'odd', 'even' %>">
|
||||
<td style="width:62%;"><%= c1 %></td>
|
||||
<td style="width:38%;"><%= c1.downloads %> ti</td>
|
||||
<td style="width:62%;"><%= link_to_attachment c1 %></td>
|
||||
<td style="width:38%;"><%= c1.downloads %> </td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue