# Provides a link to the issue age graph on the issue index page class OldIssuesGraphHook < Redmine::Hook::ViewListener def view_issues_sidebar_issues_bottom(context = { }) 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 << "
" return output end end