##// END OF EJS Templates
Merged r2250 and r2251 from trunk....
Merged r2250 and r2251 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2252 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2215:31178553f330
r2250:764393aa6ac2
Show More
list_files.rhtml
42 lines | 1.7 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="contextual">
<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'icon icon-add' %>
</div>
<h2><%=l(:label_attachment_plural)%></h2>
Jean-Philippe Lang
Merged r2116, r2117 and r2187 from trunk....
r2215 <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
<table class="list">
<thead><tr>
Jean-Philippe Lang
Merged r2168 to r2171 from trunk....
r2170 <%= sort_header_tag('filename', :caption => l(:field_filename)) %>
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc') %>
<%= sort_header_tag('downloads', :caption => l(:label_downloads_abbr), :default_order => 'desc') %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <th>MD5</th>
Jean-Philippe Lang
Merged r2116, r2117 and r2187 from trunk....
r2215 <th></th>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr></thead>
<tbody>
Jean-Philippe Lang
Merged r2116, r2117 and r2187 from trunk....
r2215 <% @containers.each do |container| %>
<% next if container.attachments.empty? -%>
<% if container.is_a?(Version) -%>
<tr><th colspan="6" align="left"><span class="icon icon-package"><b><%=h container %></b></span></th></tr>
<% end -%>
<% container.attachments.each do |file| %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tr class="<%= cycle("odd", "even") %>">
Jean-Philippe Lang
Appends the filename to the attachment url so that clients that ignore content-disposition http header get the real filename (#1649)....
r1669 <td><%= link_to_attachment file, :download => true, :title => file.description %></td>
Jean-Philippe Lang
Display date/time instead of date on files list (#817)....
r1201 <td align="center"><%= format_time(file.created_on) %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <td align="center"><%= number_to_human_size(file.filesize) %></td>
Jean-Philippe Lang
Initial commit...
r2 <td align="center"><%= file.downloads %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <td align="center"><small><%= file.digest %></small></td>
<td align="center">
Jean-Philippe Lang
Merged r2116, r2117 and r2187 from trunk....
r2215 <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
:confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
Jean-Philippe Lang
Initial commit...
r2 </tr>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end
reset_cycle %>
<% end %>
</tbody>
Jean-Philippe Lang
More detailed html title on several views....
r951 </table>
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_attachment_plural)) -%>