Feature #9493
open
Added by Terence Mill over 12 years ago.
Updated over 9 years ago.
Description
At the moment it is only possible to hook on base layout, which affects all views.
We would need a projects tree view hook, to enhance projects view via plugin.
A view hook in render_project_hierarchy as a bottom (or top, I'm not fussy) of the loop would be ideal. to add text to the summary info of each project.
This would enable a plugin to present custom project summary information in a multiple projects view.
A range of plugins are possible like issue summaries, spent_time, activity trends/graphs, project commits, gantt time/resources current used/needed.
So: +1 from me.
--- app/helpers/projects_helper.rb.orig 2014-10-27 07:35:27.000000000 +0000
+++ app/helpers/projects_helper.rb 2014-10-27 07:23:30.000000000 +0000
@@ -57,6 +57,7 @@
s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}")
if project.description.present?
s << content_tag('div', textilizable(project.short_description, :project => project), :class => 'wiki description')
+ s << call_hook(:view_project_summary, :project => @project)
end
s
end
Also available in: Atom
PDF