</td>
<td valign="top" style="word-break:break-all;width:35%;">
<div style="vertical-align:top">
- <span><%= default_project_users('admin', @qualifier).map{|u| h u.name}.join(', ') -%></span>
+ <span id="u-admin"><%= default_project_users('admin', @qualifier).map{|u| h u.name}.join(', ') -%></span>
(<%= link_to "select", {:action => 'edit_default_project_users', :role => 'admin', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectu-admin' -%>)
</div>
</td>
<td valign="top" style="word-break:break-all;width:35%;">
- <span><%= default_project_group_names('admin', @qualifier).join(', ') -%></span>
+ <span id="g-admin"><%= default_project_group_names('admin', @qualifier).join(', ') -%></span>
(<%= link_to "select", {:action => 'edit_default_project_groups', :role => 'admin', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectg-admin' -%>)
</td>
</tr>
<td valign="top"><b>Role: Users</b><br/><span class="small gray">Ability to navigate through every service of a project, except viewing source code and settings.</span>
</td>
<td valign="top" style="word-break:break-all;width:35%;">
- <span><%= default_project_users('user', @qualifier).map{|u| h u.name}.join(', ') -%></span>
+ <span id="u-user"><%= default_project_users('user', @qualifier).map{|u| h u.name}.join(', ') -%></span>
(<%= link_to "select", {:action => 'edit_default_project_users', :role => 'user', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectu-user' -%>)
</td>
<td valign="top" style="word-break:break-all;width:35%;">
- <span><%= default_project_group_names('user', @qualifier).join(', ') -%></span>
+ <span id="g-user"><%= default_project_group_names('user', @qualifier).join(', ') -%></span>
(<%= link_to "select", {:action => 'edit_default_project_groups', :role => 'user', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectg-user' -%>)
</td>
</tr>
<td valign="top">
<b>Role: Code viewers</b><br/><span class="small gray">Ability to view source code of a project.</span></td>
<td valign="top" style="word-break:break-all;width:35%;">
- <span><%= default_project_users('codeviewer', @qualifier).map{|u| h u.name}.join(', ') -%></span>
+ <span id="u-codeviewer"><%= default_project_users('codeviewer', @qualifier).map{|u| h u.name}.join(', ') -%></span>
(<%= link_to "select", {:action => 'edit_default_project_users', :role => 'codeviewer', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectu-codeviewer' -%>)
</td>
<td valign="top" style="word-break:break-all;width:35%;">
- <span><%= default_project_group_names('codeviewer', @qualifier).join(', ') -%></span>
+ <span id="g-codeviewer"><%= default_project_group_names('codeviewer', @qualifier).join(', ') -%></span>
(<%= link_to "select", {:action => 'edit_default_project_groups', :role => 'codeviewer', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectg-codeviewer' -%>)
</td>
</tr>
users=Api::Utils.insensitive_sort(project.user_roles.select { |ur| ur.role=='admin' }.map { |ur| ur.user.name })
groups=Api::Utils.insensitive_sort(project.group_roles.select { |gr| gr.role=='admin' }.map { |gr| group_name(gr.group) })
%>
- <%= users.join(', ') %>
+ <span id="u-admin-<%= u project.kee -%>"><%= users.join(', ') %></span>
(<a href="<%= ApplicationController.root_context -%>/roles/edit_users?redirect=projects&role=admin&resource=<%= project.id -%>&q=<%= u params[:q] -%>&qualifier=<%= @qualifier -%>&page=<%= params[:page] -%>" class="link-action" id="selectu-admin-<%= u project.kee -%>">select users</a>)<br/>
- <%= groups.join(', ') %>
+ <span id="g-admin-<%= u project.kee -%>"><%= groups.join(', ') %></span>
(<a href="<%= ApplicationController.root_context -%>/roles/edit_groups?redirect=projects&role=admin&resource=<%= project.id -%>&q=<%= u params[:q] -%>&qualifier=<%= @qualifier -%>&page=<%= params[:page] -%>" class="link-action" id="selectg-admin-<%= u project.kee -%>">select groups</a>)
</td>
<td valign="top">
users=Api::Utils.insensitive_sort(project.user_roles.select { |ur| ur.role=='user' }.map { |ur| ur.user.name })
groups=Api::Utils.insensitive_sort(project.group_roles.select { |gr| gr.role=='user' }.map { |gr| group_name(gr.group) })
%>
- <%= users.join(', ') %>
+ <span id="u-user-<%= u project.kee -%>"><%= users.join(', ') %></span>
(<a href="<%= ApplicationController.root_context -%>/roles/edit_users?redirect=projects&role=user&resource=<%= project.id -%>&q=<%= u params[:q] -%>&qualifier=<%= @qualifier -%>&page=<%= params[:page] -%>" class="link-action" id="selectu-user-<%= u project.kee -%>">select users</a>)<br/>
- <%= groups.join(', ') %>
+ <span id="g-user-<%= u project.kee -%>"><%= groups.join(', ') %></span>
(<a href="<%= ApplicationController.root_context -%>/roles/edit_groups?redirect=projects&role=user&resource=<%= project.id -%>&q=<%= u params[:q] -%>&qualifier=<%= @qualifier -%>&page=<%= params[:page] -%>" class="link-action" id="selectg-user-<%= u project.kee -%>">select groups</a>)
</td>
<td valign="top">
users=Api::Utils.insensitive_sort(project.user_roles.select { |ur| ur.role=='codeviewer' }.map { |ur| ur.user.name })
groups=Api::Utils.insensitive_sort(project.group_roles.select { |gr| gr.role=='codeviewer' }.map { |gr| group_name(gr.group) })
%>
- <%= users.join(', ') %>
+ <span id="u-codeviewer-<%= u project.kee -%>"><%= users.join(', ') %></span>
(<a href="<%= ApplicationController.root_context -%>/roles/edit_users?redirect=projects&role=codeviewer&resource=<%= project.id -%>&q=<%= u params[:q] -%>&qualifier=<%= @qualifier -%>&page=<%= params[:page] -%>" class="link-action" id="selectu-codeviewer-<%= u project.kee -%>">select users</a>)<br/>
- <%= groups.join(', ') %>
+ <span id="g-codeviewer-<%= u project.kee -%>"><%= groups.join(', ') %></span>
(<a href="<%= ApplicationController.root_context -%>/roles/edit_groups?redirect=projects&role=codeviewer&resource=<%= project.id -%>&q=<%= u params[:q] -%>&qualifier=<%= @qualifier -%>&page=<%= params[:page] -%>" class="link-action" id="selectg-codeviewer-<%= u project.kee -%>">select groups</a>)
</td>
</tr>