##// END OF EJS Templates
Reverting commit r1748. Some environments are not allowing the cached file to...
Reverting commit r1748. Some environments are not allowing the cached file to write to public, causing all JavaScript to fail. Javascripts are now cached into a single file for downloads in production mode. #1186 git-svn-id: http://redmine.rubyforge.org/svn/trunk@1771 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1669:9b579de9e234
r1770:8f3a04ce6906
Show More
list_files.rhtml
44 lines | 1.9 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>
<% delete_allowed = authorize_for('versions', 'destroy_file') %>
<table class="list">
<thead><tr>
<th><%=l(:field_version)%></th>
Jean-Philippe Lang
Make the project files list sortable (#997)....
r1315 <%= sort_header_tag("#{Attachment.table_name}.filename", :caption => l(:field_filename)) %>
<%= sort_header_tag("#{Attachment.table_name}.created_on", :caption => l(:label_date), :default_order => 'desc') %>
<%= sort_header_tag("#{Attachment.table_name}.filesize", :caption => l(:field_filesize), :default_order => 'desc') %>
<%= sort_header_tag("#{Attachment.table_name}.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>
<% if delete_allowed %><th></th><% end %>
</tr></thead>
<tbody>
<% for version in @versions %>
<% unless version.attachments.empty? %>
<tr><th colspan="7" align="left"><span class="icon icon-package"><b><%= version.name %></b></span></th></tr>
Jean-Philippe Lang
v0.2.0...
r5 <% for file in version.attachments %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tr class="<%= cycle("odd", "even") %>">
<td></td>
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>
<% if delete_allowed %>
<td align="center">
Jean-Philippe Lang
Fixed: trash icon not visible on files list....
r577 <%= 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 %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
Jean-Philippe Lang
Initial commit...
r2 <% end %>
</tr>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end
reset_cycle %>
<% end %>
<% 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)) -%>