From 532b86b7ebb0f9f351294d47b70fc1b8614efa87 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 17 Sep 2011 00:13:57 +0000 Subject: [PATCH] replace tabs to spaces at app/views/projects/settings/_members.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7265 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/settings/_members.html.erb | 53 +++++++++---------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb index caabcebe9..e604566d0 100644 --- a/app/views/projects/settings/_members.html.erb +++ b/app/views/projects/settings/_members.html.erb @@ -5,26 +5,26 @@
<% if members.any? %> - - - - + + + + <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> - - - <% members.each do |member| %> - <% next if member.new_record? %> - - + + + <% members.each do |member| %> + <% next if member.new_record? %> + + <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %> - + <% end; reset_cycle %> - +
<%= l(:label_user) %> / <%= l(:label_group) %><%= l(:label_role_plural) %>
<%= l(:label_user) %> / <%= l(:label_group) %><%= l(:label_role_plural) %>
<%= link_to_user member.principal %>
<%= link_to_user member.principal %> <%=h member.roles.sort.collect(&:to_s).join(', ') %> <% if authorize_for('members', 'edit') %> <% remote_form_for(:member, member, :url => {:controller => 'members', :action => 'edit', :id => member}, - :method => :post, - :html => { :id => "member-#{member.id}-roles-form", :class => 'hol' }) do |f| %> -

<% roles.each do |role| %> + :method => :post, + :html => { :id => "member-#{member.id}-roles-form", :class => 'hol' }) do |f| %> +

<% roles.each do |role| %>
+ :disabled => member.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %>
<% end %>

<%= hidden_field_tag 'member[role_ids][]', '' %>

<%= submit_tag l(:button_change), :class => "small" %> @@ -41,44 +41,43 @@ :class => 'icon icon-del') if member.deletable? %>

<% else %>

<%= l(:label_no_data) %>

<% end %>
- <% principals = Principal.active.find(:all, :limit => 100, :order => 'type, login, lastname ASC') - @project.principals %>
<% if roles.any? && principals.any? %> <% remote_form_for(:member, @member, :url => {:controller => 'members', :action => 'new', :id => @project}, :method => :post, - :loading => '$(\'member-add-submit\').disable();', - :complete => 'if($(\'member-add-submit\')) $(\'member-add-submit\').enable();') do |f| %> + :loading => '$(\'member-add-submit\').disable();', + :complete => 'if($(\'member-add-submit\')) $(\'member-add-submit\').enable();') do |f| %>
<%=l(:label_member_new)%> -

<%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %>

- <%= observe_field(:principal_search, +

<%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %>

+ <%= observe_field(:principal_search, :frequency => 0.5, :update => :principals, :url => { :controller => 'members', :action => 'autocomplete_for_member', :id => @project }, :with => 'q') %> -
- <%= principals_check_box_tags 'member[user_ids][]', principals %> -
+
+ <%= principals_check_box_tags 'member[user_ids][]', principals %> +

<%= l(:label_role_plural) %>: <% roles.each do |role| %> - - <% end %>

+ + <% end %>

<%= submit_tag l(:button_add), :id => 'member-add-submit' %>

-
+ <% end %> <% end %>
-- 2.39.5