]> source.dussan.org Git - redmine.git/commitdiff
r18532@gaspard (orig r1796): edavis10 | 2008-09-10 03:49:51 +0200
authorNicolas Chuche <nicolas.chuche@barna.be>
Sun, 14 Sep 2008 15:30:23 +0000 (15:30 +0000)
committerNicolas Chuche <nicolas.chuche@barna.be>
Sun, 14 Sep 2008 15:30:23 +0000 (15:30 +0000)
 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/branches/nbc@1832 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 %>