Feature #9493

projects tree view hook

Added by Terence Mill about 6 years ago. Updated about 3 years ago.

Status:NewStart date:2011-10-30
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-
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.

History

#1 Updated by Daniel Black about 3 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.

#2 Updated by Daniel Black about 3 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

Also available in: Atom PDF