From 44ec4eaf690297a6320afea255b5130c25431a54 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 4 Jun 2013 16:09:55 +0200 Subject: [PATCH] Update message in projects role page --- .../resources/org/sonar/l10n/core.properties | 16 ++++++++++++++++ .../WEB-INF/app/views/roles/projects.html.erb | 18 +++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 169654a11d5..7809c77abff 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -2222,6 +2222,22 @@ global_role.profileadmin=Quality Profile Administrators global_role.profileadmin.desc=Ability to perform any action on the quality profiles. +#------------------------------------------------------------------------------ +# +# PROJECTS ROLES +# +#------------------------------------------------------------------------------ +projects_role.role=Role Membership For New +projects_role.users=Users +projects_role.groups=Groups +projects_role.admin=Role: Administrators +projects_role.admin.desc=Ability to perform administration tasks for the project by accessing its settings, +projects_role.user=Role: Users +projects_role.user.desc=Ability to browse the measures and to create/edit issues on the project. +projects_role.codeviewer=Role: Code Viewers +projects_role.codeviewer.desc=Ability to view the source code of the project. + + #------------------------------------------------------------------------------ # # ERRORS HANDLING diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/roles/projects.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/roles/projects.html.erb index 3ce6433406c..5459f05096b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/roles/projects.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/roles/projects.html.erb @@ -16,15 +16,15 @@ - - - + + + - - + <%= message('projects_role.codeviewer') -%>
<%= message('projects_role.user.desc') -%> - - + + + -- 2.39.5
Role Membership For New <%= message("qualifiers.#{@qualifier}") -%>UsersGroups<%= message('projects_role.role') -%> <%= message("qualifiers.#{@qualifier}") -%><%= message('global_role.users') -%><%= message('global_role.groups') -%>
Role: Administrators
Ability to perform administration functions for a project by accessing its settings. +
<%= message('projects_role.admin') -%>
<%= message('projects_role.admin.desc') -%>
@@ -38,7 +38,7 @@
Role: Users
Ability to navigate through every service of a project, except viewing source code and settings. +
<%= message('projects_role.user') -%>
<%= message('projects_role.user.desc') -%>
<%= default_project_users('user', @qualifier).map{|u| h u.name}.join(', ') -%> @@ -51,7 +51,7 @@
- Role: Code Viewers
Ability to view source code of a project.
<%= default_project_users('codeviewer', @qualifier).map{|u| h u.name}.join(', ') -%> (<%= link_to "select", {:action => 'edit_default_project_users', :role => 'codeviewer', :redirect => 'projects', :qualifier => @qualifier}, :class => 'link-action', :id => 'selectu-codeviewer' -%>) @@ -77,9 +77,9 @@ - Role: AdministratorsRole: UsersRole: Code viewers<%= message('projects_role.admin') -%><%= message('projects_role.user') -%><%= message('projects_role.codeviewer') -%>