kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
19 years ago
|
<h2><%=l(:label_attachment_plural)%></h2>
|
||
19 years ago
|
|
||
|
<% delete_allowed = authorize_for('versions', 'destroy_file') %>
|
||
|
|
||
18 years ago
|
<table class="listTableContent">
|
||
19 years ago
|
<tr class="ListHead">
|
||
19 years ago
|
<th><%=l(:field_version)%></th>
|
||
|
<th><%=l(:field_filename)%></th>
|
||
|
<th><%=l(:label_date)%></th>
|
||
|
<th><%=l(:field_filesize)%></th>
|
||
19 years ago
|
<th>D/L</th>
|
||
|
<th>MD5</th>
|
||
|
<% if delete_allowed %><th></th><% end %>
|
||
|
</tr>
|
||
|
|
||
|
<% for version in @versions %>
|
||
19 years ago
|
<% unless version.attachments.empty? %>
|
||
|
<tr><td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td></tr>
|
||
19 years ago
|
<% for file in version.attachments %>
|
||
|
<tr class="<%= cycle("odd", "even") %>">
|
||
19 years ago
|
<td></td>
|
||
|
<td><%= link_to file.filename, :controller => 'versions', :action => 'download', :id => version, :attachment_id => file %></td>
|
||
|
<td align="center"><%= format_date(file.created_on) %></td>
|
||
19 years ago
|
<td align="center"><%= human_size(file.filesize) %></td>
|
||
19 years ago
|
<td align="center"><%= file.downloads %></td>
|
||
|
<td align="center"><small><%= file.digest %></small></td>
|
||
|
<% if delete_allowed %>
|
||
|
<td align="center">
|
||
|
<%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %>
|
||
19 years ago
|
<%= submit_tag l(:button_delete), :class => "button-small" %>
|
||
19 years ago
|
<%= end_form_tag %>
|
||
|
</td>
|
||
|
<% end %>
|
||
|
</tr>
|
||
19 years ago
|
<% end
|
||
|
reset_cycle %>
|
||
19 years ago
|
<% end %>
|
||
19 years ago
|
<% end %>
|
||
|
</table>
|
||
|
|
||
|
<br />
|
||
|
<p>
|
||
19 years ago
|
<%= link_to_if_authorized '» ' + l(:label_attachment_new), :controller => 'projects', :action => 'add_file', :id => @project %>
|
||
19 years ago
|
</p>
|
||
|
|
||
|
|