@@ -6,7 +6,7 | |||
|
6 | 6 | |
|
7 | 7 | <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %> |
|
8 | 8 | |
|
9 | <table class="list"> | |
|
9 | <table class="list files"> | |
|
10 | 10 | <thead><tr> |
|
11 | 11 | <%= sort_header_tag('filename', :caption => l(:field_filename)) %> |
|
12 | 12 | <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %> |
@@ -19,15 +19,19 | |||
|
19 | 19 | <% @containers.each do |container| %> |
|
20 | 20 | <% next if container.attachments.empty? -%> |
|
21 | 21 | <% if container.is_a?(Version) -%> |
|
22 | <tr><th colspan="6" align="left"><span class="icon icon-package"><b><%=h container %></b></span></th></tr> | |
|
22 | <tr> | |
|
23 | <th colspan="6" align="left"> | |
|
24 | <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %> | |
|
25 | </th> | |
|
26 | </tr> | |
|
23 | 27 | <% end -%> |
|
24 | 28 | <% container.attachments.each do |file| %> |
|
25 | <tr class="<%= cycle("odd", "even") %>"> | |
|
26 | <td><%= link_to_attachment file, :download => true, :title => file.description %></td> | |
|
27 |
<td |
|
|
28 |
<td |
|
|
29 |
<td |
|
|
30 |
<td |
|
|
29 | <tr class="file <%= cycle("odd", "even") %>"> | |
|
30 | <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td> | |
|
31 | <td class="created_on"><%= format_time(file.created_on) %></td> | |
|
32 | <td class="filesize"><%= number_to_human_size(file.filesize) %></td> | |
|
33 | <td class="downloads"><%= file.downloads %></td> | |
|
34 | <td class="digest"><%= file.digest %></td> | |
|
31 | 35 | <td align="center"> |
|
32 | 36 | <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file}, |
|
33 | 37 | :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %> |
@@ -110,6 +110,10 tr.entry.file td.filename a { margin-left: 16px; } | |||
|
110 | 110 | tr.changeset td.author { text-align: center; width: 15%; } |
|
111 | 111 | tr.changeset td.committed_on { text-align: center; width: 15%; } |
|
112 | 112 | |
|
113 | tr.file td { text-align: center; } | |
|
114 | tr.file td.filename { text-align: left; padding-left: 24px; } | |
|
115 | tr.file td.digest { font-size: 80%; } | |
|
116 | ||
|
113 | 117 | tr.message { height: 2.6em; } |
|
114 | 118 | tr.message td.last_message { font-size: 80%; } |
|
115 | 119 | tr.message.locked td.subject a { background-image: url(../images/locked.png); } |
General Comments 0
You need to be logged in to leave comments.
Login now