diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 873760562..a26d2661a 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -72,14 +72,19 @@ module IssuesHelper issuetype = [] if value == "缺陷" || value == 1 issuetype << "issues fl" - elsif value == "功能" || value == 2 + issuetype << "缺陷" + elsif value == "任务" || value == 4 issuetype << "duty fl" + issuetype << "任务" elsif value == "支持" || value == 3 issuetype << "support fl" - elsif value == "任务" || value == 4 + issuetype << "支持" + elsif value == "功能" || value == 2 issuetype << "function fl" + issuetype << "功能" else issuetype << "weekly fl" + issuetype << "周报" end end diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index 4549b32e0..e182fbd19 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -7,7 +7,7 @@
- <%= get_issue_type(@issue.tracker_id)[1] %> + <%= @issue.subject %> <%= get_issue_priority(@issue.priority_id)[1] %>
-<%= tag("embed", :width => 670, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_month")) %> + <%= tag("embed", :width => 670, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_month")) %>
-<%= tag("embed", :width => 670, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_author")) %> + <%= tag("embed", :width => 670, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :repository_id => @repository.identifier_param, :graph => "commits_per_author")) %>
-<%= link_to l(:button_back), :action => 'show', :id => @project %>
- <% html_title(l(:label_repository), l(:label_statistics)) -%>