9 lines
508 B
Ruby
Executable File
9 lines
508 B
Ruby
Executable File
# 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 << "<br/>"
|
|
return output
|
|
end
|
|
end |