* Fixing whitespace

* Localizing graphs sidebar title
This commit is contained in:
Brad Beattie 2009-04-01 10:33:41 -07:00
parent bf61b20956
commit 94d281822a
3 changed files with 208 additions and 207 deletions

View File

@ -1,4 +1,5 @@
en: en:
label_graphs: Graphs
label_graphs_total_vs_closed_issues: Total issues vs. Closed issues label_graphs_total_vs_closed_issues: Total issues vs. Closed issues
label_graphs_old_issues: Open aging issues label_graphs_old_issues: Open aging issues
label_graphs_issue_growth: Total issues over time label_graphs_issue_growth: Total issues over time

View File

@ -1,7 +1,7 @@
# Provides a link to the issue age graph on the issue index page # Provides a link to the issue age graph on the issue index page
class IssuesSidebarGraphHook < Redmine::Hook::ViewListener class IssuesSidebarGraphHook < Redmine::Hook::ViewListener
def view_issues_sidebar_issues_bottom(context = { }) def view_issues_sidebar_issues_bottom(context = { })
output = "<h3>Graphs</h3>" output = "<h3>#{l(:label_graphs)}</h3>"
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'}) 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 << link_to(l(:label_graphs_old_issues), {:controller => 'graphs', :action => 'old_issues', :project_id => context[:project]}) unless context[:project].nil?
output << "<br/>" output << "<br/>"