##// END OF EJS Templates
git-svn-id: http://redmine.rubyforge.org/svn/trunk@19 e93f8b46-1217-0410-a6f0-8f06a7374b81
Jean-Philippe Lang -
r17:d2b89f5f9b7c
parent child
Show More
@@ -1,46 +1,46
1 1 <h2><%=l(:label_attachment_plural)%></h2>
2 2
3 3 <% delete_allowed = authorize_for('versions', 'destroy_file') %>
4 4
5 5 <table border="0" cellspacing="1" cellpadding="2" class="listTableContent">
6 6 <tr class="ListHead">
7 7 <th><%=l(:field_version)%></th>
8 8 <th><%=l(:field_filename)%></th>
9 9 <th><%=l(:label_date)%></th>
10 10 <th><%=l(:field_filesize)%></th>
11 11 <th>D/L</th>
12 12 <th>MD5</th>
13 13 <% if delete_allowed %><th></th><% end %>
14 14 </tr>
15 15
16 16 <% for version in @versions %>
17 <tr>
18 <td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td>
19 </tr>
17 <% unless version.attachments.empty? %>
18 <tr><td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td></tr>
20 19 <% for file in version.attachments %>
21 20 <tr class="<%= cycle("odd", "even") %>">
22 21 <td></td>
23 22 <td><%= link_to file.filename, :controller => 'versions', :action => 'download', :id => version, :attachment_id => file %></td>
24 23 <td align="center"><%= format_date(file.created_on) %></td>
25 24 <td align="center"><%= human_size(file.filesize) %></td>
26 25 <td align="center"><%= file.downloads %></td>
27 26 <td align="center"><small><%= file.digest %></small></td>
28 27 <% if delete_allowed %>
29 28 <td align="center">
30 29 <%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %>
31 30 <%= submit_tag l(:button_delete), :class => "button-small" %>
32 31 <%= end_form_tag %>
33 32 </td>
34 33 <% end %>
35 34 </tr>
36 35 <% end
37 36 reset_cycle %>
37 <% end %>
38 38 <% end %>
39 39 </table>
40 40
41 41 <br />
42 42 <p>
43 43 <%= link_to_if_authorized '&#187; ' + l(:label_attachment_new), :controller => 'projects', :action => 'add_file', :id => @project %>
44 44 </p>
45 45
46 46
@@ -1,39 +1,46
1 <% if @statuses.empty? or rows.empty? %>
2 <p><i><%=l(:label_no_data)%></i></p>
3 <% else %>
1 4 <% col_width = 70 / (@statuses.length+3) %>
2
3 5 <table border="0" cellspacing="1" cellpadding="2" width="100%">
4 6 <tr>
5 7 <td width="25%"></td>
6 8 <% for status in @statuses %>
7 9 <td align="center" width="<%= col_width %>%" bgcolor="#<%= status.html_color %>"><small><%= status.name %></small></td>
8 10 <% end %>
9 11 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></td>
10 12 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></td>
11 13 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></td>
12 14 </tr>
13 15
14 16 <% for row in rows %>
15 17 <tr style="background-color:#CEE1ED">
16 18 <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
17 19 :set_filter => 1,
18 20 "#{field_name}" => row.id %></td>
19 21 <% for status in @statuses %>
20 22 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "status_id" => status.id }),
21 23 :controller => 'projects', :action => 'list_issues', :id => @project,
22 24 :set_filter => 1,
23 25 "status_id" => status.id,
24 26 "#{field_name}" => row.id %></td>
25 27 <% end %>
26 28 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 0 }),
27 29 :controller => 'projects', :action => 'list_issues', :id => @project,
28 30 :set_filter => 1,
29 31 "#{field_name}" => row.id,
30 32 "status_id" => "O" %></td>
31 <td align="center"><%= aggregate data, { field_name => row.id, "closed" => 1 } %></td>
33 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 1 }),
34 :controller => 'projects', :action => 'list_issues', :id => @project,
35 :set_filter => 1,
36 "#{field_name}" => row.id,
37 "status_id" => "C" %></td>
32 38 <td align="center"><%= link_to (aggregate data, { field_name => row.id }),
33 39 :controller => 'projects', :action => 'list_issues', :id => @project,
34 40 :set_filter => 1,
35 41 "#{field_name}" => row.id,
36 42 "status_id" => "A" %></td>
37 43 <% end %>
38 44 </tr>
39 </table> No newline at end of file
45 </table>
46 <% end %> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now