From 0c5ba4a06c4f996a678ca3ce058b58ac006ca484 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 4 Jan 2013 00:20:33 +0100 Subject: [PATCH] Add HTML ids for better integration tests --- .../WEB-INF/app/views/project_roles/index.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project_roles/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project_roles/index.html.erb index bcd7a0976b4..6af2dc4a534 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project_roles/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project_roles/index.html.erb @@ -11,33 +11,33 @@ Administrators
Ability to perform administration functions for a project by accessing its settings. - <%= users('admin', params[:id]).map(&:name).join(', ') %> + <%= users('admin', @project.id).map(&:name).join(', ') %> (<%= link_to "select", {:action => 'edit_users', :id => @project.id, :role => 'admin'}, {:id => 'select-admin-edit-users', :class => 'link-action'} %>) - <%= groups('admin', params[:id]).map{|g| group_name(g)}.join(', ') %> + <%= groups('admin', @project.id).map{|g| group_name(g)}.join(', ') %> (<%= link_to "select", {:action => 'edit_groups', :id => @project.id, :role => 'admin'}, {:id => 'select-admin-edit-groups', :class => 'link-action'} %>) Users
Ability to navigate through every service of a project, except viewing source code and settings. - <%= users('user', params[:id]).map(&:name).join(', ') %> + <%= users('user', @project.id).map(&:name).join(', ') %> (<%= link_to "select", {:action => 'edit_users', :id => @project.id, :role => 'user'}, {:id => 'select-user-edit-users', :class => 'link-action'} %>) - <%= groups('user', params[:id]).map{|g| group_name(g)}.join(', ') %> + <%= groups('user', @project.id).map{|g| group_name(g)}.join(', ') %> (<%= link_to "select", {:action => 'edit_groups', :id => @project.id, :role => 'user'}, {:id => 'select-user-edit-groups', :class => 'link-action'} %>) Code viewers
Ability to view source code of a project. - <%= users('codeviewer', params[:id]).map(&:name).join(', ') %> + <%= users('codeviewer', @project.id).map(&:name).join(', ') %> (<%= link_to "select", {:action => 'edit_users', :id => @project.id, :role => 'codeviewer'}, {:id => 'select-codeviewer-edit-users', :class => 'link-action'} %>) - <%= groups('codeviewer', params[:id]).map{|g| group_name(g)}.join(', ') %> + <%= groups('codeviewer', @project.id).map{|g| group_name(g)}.join(', ') %> (<%= link_to "select", {:action => 'edit_groups', :id => @project.id, :role => 'codeviewer'}, {:id => 'select-codeviewer-edit-groups', :class => 'link-action'} %>)