users=Api::Utils.insensitive_sort(permission_template.getUsersForPermission(permission).collect {|u| u.userName})
groups=Api::Utils.insensitive_sort(permission_template.getGroupsForPermission(permission).collect {|g| g.groupName.blank? ? 'Anyone' : g.groupName})
%>
- <span class="nowrap" id="u-<%= permission -%>-<%= u permission_template.name -%>"><%= users.join(', ') %></span>
+ <span id="u-<%= permission -%>-<%= u permission_template.name -%>"><%= users.join(', ') %></span>
(<%= link_to message('select users'), {:action => :edit_users, :name => permission_template.name, :permission => permission},
:id => "select-u-#{permission}-#{u permission_template.name}", :class => 'open-modal link-action nowrap', 'modal-width' => '780px' %>)<br/>
- <span class="nowrap" id="g-<%= permission -%>-<%= u permission_template.name -%>"><%= groups.join(', ') %></span>
+ <span id="g-<%= permission -%>-<%= u permission_template.name -%>"><%= groups.join(', ') %></span>
(<%= link_to message('select groups'), {:action => :edit_groups, :name => permission_template.name, :permission => permission},
:id => "select-g-#{permission}-#{u permission_template.name}", :class => 'open-modal link-action nowrap', 'modal-width' => '780px' %>)<br/>
</td>
<% ['admin', 'user', 'codeviewer'].each do |permission| -%>
<td valign="top">
- <span class="nowrap" id="<%= permission -%>-role-users"><%= users(permission, @project.id).map(&:name).join(', ') %></span>
+ <span id="<%= permission -%>-role-users"><%= users(permission, @project.id).map(&:name).join(', ') %></span>
(<%= link_to_edit_roles_permission_form(message('select'), permission, @project.id, "select-#{permission}-edit-users") %>)<br/>
</td>
<% end %>
<td valign="top"><b>Groups</b></td>
<% ['admin', 'user', 'codeviewer'].each do |permission| -%>
<td valign="top">
- <span class="nowrap" id="<%= permission -%>-role-groups"><%= groups(permission, @project.id).map{|g| group_name(g)}.join(', ') %></span>
+ <span id="<%= permission -%>-role-groups"><%= groups(permission, @project.id).map{|g| group_name(g)}.join(', ') %></span>
(<%= link_to_edit_groups_permission_form(message('select'), permission, @project.id, "select-#{permission}-edit-groups") %>)<br/>
</td>
<% end %>
</tr>
</tbody>
-</table>
\ No newline at end of file
+</table>
users=Api::Utils.insensitive_sort(project.user_roles.select { |ur| ur.role==permission }.map { |ur| ur.user.name })
groups=Api::Utils.insensitive_sort(project.group_roles.select { |gr| gr.role==permission }.map { |gr| group_name(gr.group) })
%>
- <span class="nowrap" id="u-<%= permission -%>-<%= u project.kee -%>"><%= users.join(', ') %></span>
+ <span id="u-<%= permission -%>-<%= u project.kee -%>"><%= users.join(', ') %></span>
(<%= link_to_edit_roles_permission_form(message('select users'), permission, project.id, "select-u-#{permission}-#{u project.kee}") %>)<br/>
- <span class="nowrap" id="g-<%= permission -%>-<%= u project.kee -%>"><%= groups.join(', ') %></span>
+ <span id="g-<%= permission -%>-<%= u project.kee -%>"><%= groups.join(', ') %></span>
(<%= link_to_edit_groups_permission_form(message('select groups'), permission, project.id, "select-g-#{permission}-#{u project.kee}") %>)<br/>
</td>
<% end %>
}
$j('#search-text').focus();
-</script>
\ No newline at end of file
+</script>