diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-07-04 11:16:08 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-07-04 11:16:08 +0200 |
commit | 95bd81b84dbf58ee2a072eb1570ffc34d183c0b5 (patch) | |
tree | 8628104aa23a3f0e4590b5264d8252a534898bcf /sonar-server | |
parent | 382c4f4164053c2f3b2c859615f73f3076b14904 (diff) | |
download | sonarqube-95bd81b84dbf58ee2a072eb1570ffc34d183c0b5.tar.gz sonarqube-95bd81b84dbf58ee2a072eb1570ffc34d183c0b5.zip |
SONAR-3517 Fix issue linked to ERB file trimming done at build time
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/project/quality_profile.html.erb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project/quality_profile.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project/quality_profile.html.erb index 078956f8bb4..f75218f7db9 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/project/quality_profile.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project/quality_profile.html.erb @@ -5,12 +5,16 @@ project_profile = @project.profile %> - <span style= "padding-right: 10px"><%= message('project_quality_profile.current_profile_for_x', :params => @project.name) -%></span> + <span style= "padding-right: 10px"><%= message('project_quality_profile.select_profile_for_x', :params => @project.name) -%></span> <select name="quality_profile" id="quality_profile"> - <% @profiles.each do |profile| %> - <option <%= 'selected' if (project_profile && project_profile==profile) || (!project_profile && profile.default_profile) -%> - value="<%= profile.id -%>"><%= profile.name -%></option> + <% + @profiles.each do |profile| + should_be_selected = (project_profile && project_profile==profile) || (!project_profile && profile.default_profile) + label = profile.name + label += ' (' + message('project_quality_profile.default_profile') + ')' if profile.default_profile + %> + <option <%= 'selected' if should_be_selected -%> value="<%= profile.id -%>"><%= label -%></option> <% end %> </select> |