]> source.dussan.org Git - redmine.git/commitdiff
Added context fields to the :view_projects_settings_members_table hooks
authorEric Davis <edavis@littlestreamsoftware.com>
Wed, 10 Sep 2008 01:49:51 +0000 (01:49 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Wed, 10 Sep 2008 01:49:51 +0000 (01:49 +0000)
* :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

app/views/projects/settings/_members.rhtml

index 9fdd3e5b4e91f0a7622e3a216990164a233ec7de..67c3fb505724276b0e3f3fa9263f2215d8baf4cb 100644 (file)
@@ -10,7 +10,7 @@
          <th><%= l(:label_user) %></th>
          <th><%= l(:label_role) %></th>
          <th style="width:15%"></th>
-          <%= call_hook(:view_projects_settings_members_table_header) %>
+          <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %>
        </thead>
        <tbody>
        <% members.each do |member| %>
@@ -31,7 +31,7 @@
                                             }, :title => l(:button_delete),
                                                :class => 'icon icon-del' %>
     </td>
-    <%= call_hook(:view_projects_settings_members_table_row, :member => @member) %>
+    <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
        </tr>
        </tbody>
 <% end; reset_cycle %>