From: Eric Davis Date: Wed, 10 Sep 2008 01:49:51 +0000 (+0000) Subject: Added context fields to the :view_projects_settings_members_table hooks X-Git-Tag: 0.8.0-RC1~259 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8e3ddf382fa36c1c9d5532361091af098f8bb22;p=redmine.git Added context fields to the :view_projects_settings_members_table hooks * :view_projects_settings_members_table_header now has :project * :view_projects_settings_members_table_row now has :project * :view_projects_settings_members_table_row has a fixed :member field git-svn-id: http://redmine.rubyforge.org/svn/trunk@1796 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/projects/settings/_members.rhtml b/app/views/projects/settings/_members.rhtml index 9fdd3e5b4..67c3fb505 100644 --- a/app/views/projects/settings/_members.rhtml +++ b/app/views/projects/settings/_members.rhtml @@ -10,7 +10,7 @@ <%= l(:label_user) %> <%= l(:label_role) %> - <%= call_hook(:view_projects_settings_members_table_header) %> + <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> <% members.each do |member| %> @@ -31,7 +31,7 @@ }, :title => l(:button_delete), :class => 'icon icon-del' %> - <%= call_hook(:view_projects_settings_members_table_row, :member => @member) %> + <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %> <% end; reset_cycle %>