##// 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 <h2><%=l(:label_attachment_plural)%></h2>
1 <h2><%=l(:label_attachment_plural)%></h2>
2
2
3 <% delete_allowed = authorize_for('versions', 'destroy_file') %>
3 <% delete_allowed = authorize_for('versions', 'destroy_file') %>
4
4
5 <table border="0" cellspacing="1" cellpadding="2" class="listTableContent">
5 <table border="0" cellspacing="1" cellpadding="2" class="listTableContent">
6 <tr class="ListHead">
6 <tr class="ListHead">
7 <th><%=l(:field_version)%></th>
7 <th><%=l(:field_version)%></th>
8 <th><%=l(:field_filename)%></th>
8 <th><%=l(:field_filename)%></th>
9 <th><%=l(:label_date)%></th>
9 <th><%=l(:label_date)%></th>
10 <th><%=l(:field_filesize)%></th>
10 <th><%=l(:field_filesize)%></th>
11 <th>D/L</th>
11 <th>D/L</th>
12 <th>MD5</th>
12 <th>MD5</th>
13 <% if delete_allowed %><th></th><% end %>
13 <% if delete_allowed %><th></th><% end %>
14 </tr>
14 </tr>
15
15
16 <% for version in @versions %>
16 <% for version in @versions %>
17 <tr>
17 <% unless version.attachments.empty? %>
18 <td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td>
18 <tr><td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td></tr>
19 </tr>
20 <% for file in version.attachments %>
19 <% for file in version.attachments %>
21 <tr class="<%= cycle("odd", "even") %>">
20 <tr class="<%= cycle("odd", "even") %>">
22 <td></td>
21 <td></td>
23 <td><%= link_to file.filename, :controller => 'versions', :action => 'download', :id => version, :attachment_id => file %></td>
22 <td><%= link_to file.filename, :controller => 'versions', :action => 'download', :id => version, :attachment_id => file %></td>
24 <td align="center"><%= format_date(file.created_on) %></td>
23 <td align="center"><%= format_date(file.created_on) %></td>
25 <td align="center"><%= human_size(file.filesize) %></td>
24 <td align="center"><%= human_size(file.filesize) %></td>
26 <td align="center"><%= file.downloads %></td>
25 <td align="center"><%= file.downloads %></td>
27 <td align="center"><small><%= file.digest %></small></td>
26 <td align="center"><small><%= file.digest %></small></td>
28 <% if delete_allowed %>
27 <% if delete_allowed %>
29 <td align="center">
28 <td align="center">
30 <%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %>
29 <%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %>
31 <%= submit_tag l(:button_delete), :class => "button-small" %>
30 <%= submit_tag l(:button_delete), :class => "button-small" %>
32 <%= end_form_tag %>
31 <%= end_form_tag %>
33 </td>
32 </td>
34 <% end %>
33 <% end %>
35 </tr>
34 </tr>
36 <% end
35 <% end
37 reset_cycle %>
36 reset_cycle %>
37 <% end %>
38 <% end %>
38 <% end %>
39 </table>
39 </table>
40
40
41 <br />
41 <br />
42 <p>
42 <p>
43 <%= link_to_if_authorized '&#187; ' + l(:label_attachment_new), :controller => 'projects', :action => 'add_file', :id => @project %>
43 <%= link_to_if_authorized '&#187; ' + l(:label_attachment_new), :controller => 'projects', :action => 'add_file', :id => @project %>
44 </p>
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 <% col_width = 70 / (@statuses.length+3) %>
4 <% col_width = 70 / (@statuses.length+3) %>
2
3 <table border="0" cellspacing="1" cellpadding="2" width="100%">
5 <table border="0" cellspacing="1" cellpadding="2" width="100%">
4 <tr>
6 <tr>
5 <td width="25%"></td>
7 <td width="25%"></td>
6 <% for status in @statuses %>
8 <% for status in @statuses %>
7 <td align="center" width="<%= col_width %>%" bgcolor="#<%= status.html_color %>"><small><%= status.name %></small></td>
9 <td align="center" width="<%= col_width %>%" bgcolor="#<%= status.html_color %>"><small><%= status.name %></small></td>
8 <% end %>
10 <% end %>
9 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></td>
11 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></td>
10 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></td>
12 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></td>
11 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></td>
13 <td align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></td>
12 </tr>
14 </tr>
13
15
14 <% for row in rows %>
16 <% for row in rows %>
15 <tr style="background-color:#CEE1ED">
17 <tr style="background-color:#CEE1ED">
16 <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
18 <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
17 :set_filter => 1,
19 :set_filter => 1,
18 "#{field_name}" => row.id %></td>
20 "#{field_name}" => row.id %></td>
19 <% for status in @statuses %>
21 <% for status in @statuses %>
20 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "status_id" => status.id }),
22 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "status_id" => status.id }),
21 :controller => 'projects', :action => 'list_issues', :id => @project,
23 :controller => 'projects', :action => 'list_issues', :id => @project,
22 :set_filter => 1,
24 :set_filter => 1,
23 "status_id" => status.id,
25 "status_id" => status.id,
24 "#{field_name}" => row.id %></td>
26 "#{field_name}" => row.id %></td>
25 <% end %>
27 <% end %>
26 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 0 }),
28 <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 0 }),
27 :controller => 'projects', :action => 'list_issues', :id => @project,
29 :controller => 'projects', :action => 'list_issues', :id => @project,
28 :set_filter => 1,
30 :set_filter => 1,
29 "#{field_name}" => row.id,
31 "#{field_name}" => row.id,
30 "status_id" => "O" %></td>
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 <td align="center"><%= link_to (aggregate data, { field_name => row.id }),
38 <td align="center"><%= link_to (aggregate data, { field_name => row.id }),
33 :controller => 'projects', :action => 'list_issues', :id => @project,
39 :controller => 'projects', :action => 'list_issues', :id => @project,
34 :set_filter => 1,
40 :set_filter => 1,
35 "#{field_name}" => row.id,
41 "#{field_name}" => row.id,
36 "status_id" => "A" %></td>
42 "status_id" => "A" %></td>
37 <% end %>
43 <% end %>
38 </tr>
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