<%=_('Files')%>

<% delete_allowed = authorize_for('versions', 'destroy_file') %> <% if delete_allowed %><% end %> <% for version in @versions %> <% odd_or_even = 1 for file in version.attachments odd_or_even = 1 - odd_or_even %> <% if delete_allowed %> <% end %> <% end %> <% end %>
<%=_('Version')%> <%=_('File')%> <%=_('Date')%> <%=_('Size')%> D/L MD5
<%= image_tag 'package' %> <%= version.name %>
<%= link_to file.filename, :controller => 'versions', :action => 'download', :id => version, :attachment_id => file %> <%= format_date(file.created_on) %> <%= human_size(file.size) %> <%= file.downloads %> <%= file.digest %> <%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %> <%= submit_tag _('Delete'), :class => "button-small" %> <%= end_form_tag %>

<%= link_to_if_authorized '» ' + _('New'), :controller => 'projects', :action => 'add_file', :id => @project %>