summaryrefslogtreecommitdiffstats
path: root/app/views/versions
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-30 14:24:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-30 14:24:33 +0000
commitf909a8c006d01e8b500ef8ffc9963bdf81662faf (patch)
treef66a4a8b49173fd750b6e7d177e7475876942795 /app/views/versions
parent399223daba6f993775fe783828b6612747e7a89f (diff)
downloadredmine-f909a8c006d01e8b500ef8ffc9963bdf81662faf.tar.gz
redmine-f909a8c006d01e8b500ef8ffc9963bdf81662faf.zip
Issues by Category should show tasks without category (#8106).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10771 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r--app/views/versions/_issue_counts.html.erb11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/views/versions/_issue_counts.html.erb b/app/views/versions/_issue_counts.html.erb
index d4b33255c..50f174d08 100644
--- a/app/views/versions/_issue_counts.html.erb
+++ b/app/views/versions/_issue_counts.html.erb
@@ -14,12 +14,11 @@
<% counts.each do |count| %>
<tr>
<td width="130px" align="right" >
- <%= link_to h(count[:group]), {:controller => 'issues',
- :action => 'index',
- :project_id => version.project,
- :set_filter => 1,
- :status_id => '*',
- :fixed_version_id => version}.merge("#{criteria}_id".to_sym => count[:group]) %>
+ <% if count[:group] -%>
+ <%= link_to(h(count[:group]), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %>
+ <% else -%>
+ <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %>
+ <% end %>
</td>
<td width="240px">
<%= progress_bar((count[:closed].to_f / count[:total])*100,