##// END OF EJS Templates
New shiny locale config update - pt-BR (thank to Alexandre da Silva, #2802)...
New shiny locale config update - pt-BR (thank to Alexandre da Silva, #2802) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2511 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2169:5c97a83a705f
r2448:0123f7cde0c3
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
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
<table class="list">
<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) -%>
<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
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)) -%>