##// END OF EJS Templates
Slight changes to the files list (#2658, #2806)....
Slight changes to the files list (#2658, #2806). * Adds a link to the version * Moves styles to the stylesheet * Indent the files git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2515 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2452:7342a00e0a98
r2452:7342a00e0a98
Show More
list_files.rhtml
46 lines | 1.8 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
AttachmentsController now handles attachments deletion....
r2114 <% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Slight changes to the files list (#2658, #2806)....
r2452 <table class="list files">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <thead><tr>
Jean-Philippe Lang
Validates sort_key and sort_order params (#2378)....
r2169 <%= 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
Files module: makes version field non required (#1053)....
r2115 <th></th>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr></thead>
<tbody>
Jean-Philippe Lang
Files module: makes version field non required (#1053)....
r2115 <% @containers.each do |container| %>
<% next if container.attachments.empty? -%>
<% if container.is_a?(Version) -%>
Jean-Philippe Lang
Slight changes to the files list (#2658, #2806)....
r2452 <tr>
<th colspan="6" align="left">
<%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
</th>
</tr>
Jean-Philippe Lang
Files module: makes version field non required (#1053)....
r2115 <% end -%>
<% container.attachments.each do |file| %>
Jean-Philippe Lang
Slight changes to the files list (#2658, #2806)....
r2452 <tr class="file <%= cycle("odd", "even") %>">
<td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></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>
<td class="digest"><%= file.digest %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <td align="center">
Jean-Philippe Lang
Files module: makes version field non required (#1053)....
r2115 <%= 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)) -%>