diff --git a/app/controllers/graphs_controller.rb b/app/controllers/graphs_controller.rb index cbc7c36..2ea6e2c 100755 --- a/app/controllers/graphs_controller.rb +++ b/app/controllers/graphs_controller.rb @@ -145,6 +145,7 @@ class GraphsController < ApplicationController :x_label_format => "%b %d" }) + # Group issues issues_by_created_on = @version.fixed_issues.group_by {|issue| issue.created_on.to_date }.sort issues_by_updated_on = @version.fixed_issues.group_by {|issue| issue.updated_on.to_date }.sort diff --git a/config/locales/en.yml b/config/locales/en.yml index 02782ca..857656f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,5 +1,6 @@ en: + label_graphs: Graphs label_graphs_total_vs_closed_issues: Total issues vs. Closed issues label_graphs_old_issues: Open aging issues label_graphs_issue_growth: Total issues over time - \ No newline at end of file + diff --git a/lib/issues_sidebar_graph_hook.rb b/lib/issues_sidebar_graph_hook.rb index 11cd513..9c61cf9 100755 --- a/lib/issues_sidebar_graph_hook.rb +++ b/lib/issues_sidebar_graph_hook.rb @@ -1,7 +1,7 @@ # Provides a link to the issue age graph on the issue index page class IssuesSidebarGraphHook < Redmine::Hook::ViewListener def view_issues_sidebar_issues_bottom(context = { }) - output = "

Graphs

" + output = "

#{l(:label_graphs)}

" output << link_to(l(:label_graphs_old_issues), {:controller => 'graphs', :action => 'old_issues'}) if context[:project].nil? output << link_to(l(:label_graphs_old_issues), {:controller => 'graphs', :action => 'old_issues', :project_id => context[:project]}) unless context[:project].nil? output << "
" @@ -10,4 +10,4 @@ class IssuesSidebarGraphHook < Redmine::Hook::ViewListener output << "
" return output end -end \ No newline at end of file +end