Actions
Feature #9493
openprojects tree view hook
Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2011-10-30
Due date:
% Done:
0%
Estimated time:
Resolution:
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.
Updated by Daniel Black about 10 years ago
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.
Updated by Daniel Black about 10 years ago
--- 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
Actions