diff --git a/redmine/app/views/projects/list_files.rhtml b/redmine/app/views/projects/list_files.rhtml index 4498f25..a2a06c9 100644 --- a/redmine/app/views/projects/list_files.rhtml +++ b/redmine/app/views/projects/list_files.rhtml @@ -14,9 +14,8 @@ <% for version in @versions %> - - <%= image_tag 'package' %> <%= version.name %> - + <% unless version.attachments.empty? %> + <%= image_tag 'package' %> <%= version.name %> <% for file in version.attachments %> "> @@ -35,6 +34,7 @@ <% end reset_cycle %> + <% end %> <% end %> diff --git a/redmine/app/views/reports/_simple.rhtml b/redmine/app/views/reports/_simple.rhtml index 2dde32a..2628c15 100644 --- a/redmine/app/views/reports/_simple.rhtml +++ b/redmine/app/views/reports/_simple.rhtml @@ -1,5 +1,7 @@ +<% if @statuses.empty? or rows.empty? %> +

<%=l(:label_no_data)%>

+<% else %> <% col_width = 70 / (@statuses.length+3) %> - @@ -28,7 +30,11 @@ :set_filter => 1, "#{field_name}" => row.id, "status_id" => "O" %> - + <% end %> -
<%= aggregate data, { field_name => row.id, "closed" => 1 } %><%= 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" %> <%= link_to (aggregate data, { field_name => row.id }), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1, @@ -36,4 +42,5 @@ "status_id" => "A" %>
\ No newline at end of file + +<% end %> \ No newline at end of file