Commits

jplang  committed 607e2ac

...

  • Participants
  • Parent commits e22e71c

Comments (0)

Files changed (2)

File redmine/app/views/projects/list_files.rhtml

   </tr>
   
 <% for version in @versions %>	
-  <tr>
-    <td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td>
-  </tr>
+  <% unless version.attachments.empty? %>
+  <tr><td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td></tr>
   <% for file in version.attachments %>		
   <tr class="<%= cycle("odd", "even") %>">
     <td></td>
   </tr>		
   <% end
   reset_cycle %>
+  <% end %>
 <% end %>
 </table>
 

File redmine/app/views/reports/_simple.rhtml

+<% if @statuses.empty? or rows.empty? %>
+    <p><i><%=l(:label_no_data)%></i></p>
+<% else %>
 <% col_width = 70 / (@statuses.length+3) %>
-
 <table border="0" cellspacing="1" cellpadding="2" width="100%">
 <tr>
 <td width="25%"></td>
                                                 :set_filter => 1, 
                                                 "#{field_name}" => row.id,
                                                 "status_id" => "O" %></td>
-  <td align="center"><%= aggregate data, { field_name => row.id, "closed" => 1 } %></td>
+  <td align="center"><%= link_to (aggregate data, { field_name => row.id, "closed" => 1 }),
+                                                :controller => 'projects', :action => 'list_issues', :id => @project, 
+                                                :set_filter => 1, 
+                                                "#{field_name}" => row.id,
+                                                "status_id" => "C" %></td>
   <td align="center"><%= link_to (aggregate data, { field_name => row.id }),
                                                 :controller => 'projects', :action => 'list_issues', :id => @project, 
                                                 :set_filter => 1, 
                                                 "status_id" => "A" %></td>  
 <% end %>
 </tr>
-</table>
+</table>
+<% end %>