##// END OF EJS Templates
Display date/time instead of date on files list (#817)....
Jean-Philippe Lang -
r1201:522b9e6b5b1b
parent child
Show More
@@ -1,47 +1,45
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'icon icon-add' %>
2 <%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'icon icon-add' %>
3 </div>
3 </div>
4
4
5 <h2><%=l(:label_attachment_plural)%></h2>
5 <h2><%=l(:label_attachment_plural)%></h2>
6
6
7 <% delete_allowed = authorize_for('versions', 'destroy_file') %>
7 <% delete_allowed = authorize_for('versions', 'destroy_file') %>
8
8
9 <table class="list">
9 <table class="list">
10 <thead><tr>
10 <thead><tr>
11 <th><%=l(:field_version)%></th>
11 <th><%=l(:field_version)%></th>
12 <th><%=l(:field_filename)%></th>
12 <th><%=l(:field_filename)%></th>
13 <th><%=l(:label_date)%></th>
13 <th><%=l(:label_date)%></th>
14 <th><%=l(:field_filesize)%></th>
14 <th><%=l(:field_filesize)%></th>
15 <th><%=l(:label_downloads_abbr)%></th>
15 <th><%=l(:label_downloads_abbr)%></th>
16 <th>MD5</th>
16 <th>MD5</th>
17 <% if delete_allowed %><th></th><% end %>
17 <% if delete_allowed %><th></th><% end %>
18 </tr></thead>
18 </tr></thead>
19 <tbody>
19 <tbody>
20 <% for version in @versions %>
20 <% for version in @versions %>
21 <% unless version.attachments.empty? %>
21 <% unless version.attachments.empty? %>
22 <tr><th colspan="7" align="left"><span class="icon icon-package"><b><%= version.name %></b></span></th></tr>
22 <tr><th colspan="7" align="left"><span class="icon icon-package"><b><%= version.name %></b></span></th></tr>
23 <% for file in version.attachments %>
23 <% for file in version.attachments %>
24 <tr class="<%= cycle("odd", "even") %>">
24 <tr class="<%= cycle("odd", "even") %>">
25 <td></td>
25 <td></td>
26 <td><%= link_to(file.filename, {:controller => 'versions', :action => 'download', :id => version, :attachment_id => file},
26 <td><%= link_to(file.filename, {:controller => 'versions', :action => 'download', :id => version, :attachment_id => file},
27 :title => file.description) %></td>
27 :title => file.description) %></td>
28 <td align="center"><%= format_date(file.created_on) %></td>
28 <td align="center"><%= format_time(file.created_on) %></td>
29 <td align="center"><%= number_to_human_size(file.filesize) %></td>
29 <td align="center"><%= number_to_human_size(file.filesize) %></td>
30 <td align="center"><%= file.downloads %></td>
30 <td align="center"><%= file.downloads %></td>
31 <td align="center"><small><%= file.digest %></small></td>
31 <td align="center"><small><%= file.digest %></small></td>
32 <% if delete_allowed %>
32 <% if delete_allowed %>
33 <td align="center">
33 <td align="center">
34 <div class="contextual">
35 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :method => :post %>
34 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :method => :post %>
36 </div>
37 </td>
35 </td>
38 <% end %>
36 <% end %>
39 </tr>
37 </tr>
40 <% end
38 <% end
41 reset_cycle %>
39 reset_cycle %>
42 <% end %>
40 <% end %>
43 <% end %>
41 <% end %>
44 </tbody>
42 </tbody>
45 </table>
43 </table>
46
44
47 <% html_title(l(:label_attachment_plural)) -%>
45 <% html_title(l(:label_attachment_plural)) -%>
General Comments 0
You need to be logged in to leave comments. Login now