# HG changeset patch # User luisf # Date 1292349094 0 # Node ID f549e0ce4aadf3b815fe6f0a45cd912d4e996207 # Parent d9df68bf89076e4241b5df5e46feeea231ac9383 Bug #51: Unfinished and not completely tested - limits the number of displayed users to 10. diff -r d9df68bf8907 -r f549e0ce4aad app/views/projects/settings/_members.rhtml --- a/app/views/projects/settings/_members.rhtml Tue Dec 14 16:52:12 2010 +0000 +++ b/app/views/projects/settings/_members.rhtml Tue Dec 14 17:51:34 2010 +0000 @@ -13,19 +13,18 @@ <% members.each do |member| %> - <% next if member.new_record? %> - - <%= 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| %> -

<% roles.each do |role| %> +
- <% end %>

+ <% end %>

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

<%= submit_tag l(:button_change), :class => "small" %> <%= link_to_function l(:button_cancel), "$('member-#{member.id}-roles').show(); $('member-#{member.id}-roles-form').hide(); return false;" %>

@@ -51,7 +50,7 @@ -<% principals = Principal.active.find(:all, :limit => 100, :order => 'type, login, lastname ASC') - @project.principals %> +<% principals = Principal.active.find(:all, :limit => 10, :order => 'type, login, lastname ASC') - @project.principals %>
<% if roles.any? && principals.any? %>