@@ -6,7 +6,7 | |||||
6 |
|
6 | |||
7 | <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %> |
|
7 | <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %> | |
8 |
|
8 | |||
9 | <table class="list"> |
|
9 | <table class="list files"> | |
10 | <thead><tr> |
|
10 | <thead><tr> | |
11 | <%= sort_header_tag('filename', :caption => l(:field_filename)) %> |
|
11 | <%= sort_header_tag('filename', :caption => l(:field_filename)) %> | |
12 | <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %> |
|
12 | <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %> | |
@@ -19,15 +19,19 | |||||
19 | <% @containers.each do |container| %> |
|
19 | <% @containers.each do |container| %> | |
20 | <% next if container.attachments.empty? -%> |
|
20 | <% next if container.attachments.empty? -%> | |
21 | <% if container.is_a?(Version) -%> |
|
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 | <% end -%> |
|
27 | <% end -%> | |
24 | <% container.attachments.each do |file| %> |
|
28 | <% container.attachments.each do |file| %> | |
25 | <tr class="<%= cycle("odd", "even") %>"> |
|
29 | <tr class="file <%= cycle("odd", "even") %>"> | |
26 | <td><%= link_to_attachment file, :download => true, :title => file.description %></td> |
|
30 | <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td> | |
27 |
<td |
|
31 | <td class="created_on"><%= format_time(file.created_on) %></td> | |
28 |
<td |
|
32 | <td class="filesize"><%= number_to_human_size(file.filesize) %></td> | |
29 |
<td |
|
33 | <td class="downloads"><%= file.downloads %></td> | |
30 |
<td |
|
34 | <td class="digest"><%= file.digest %></td> | |
31 | <td align="center"> |
|
35 | <td align="center"> | |
32 | <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file}, |
|
36 | <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file}, | |
33 | :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %> |
|
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 | tr.changeset td.author { text-align: center; width: 15%; } |
|
110 | tr.changeset td.author { text-align: center; width: 15%; } | |
111 | tr.changeset td.committed_on { text-align: center; width: 15%; } |
|
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 | tr.message { height: 2.6em; } |
|
117 | tr.message { height: 2.6em; } | |
114 | tr.message td.last_message { font-size: 80%; } |
|
118 | tr.message td.last_message { font-size: 80%; } | |
115 | tr.message.locked td.subject a { background-image: url(../images/locked.png); } |
|
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