# PROJECT QUALITY PROFILE PAGE
#
#------------------------------------------------------------------------------
-project_quality_profile.current_profile_for_x=Current quality profile for "{0}":
+project_quality_profile.select_profile_for_x=Select the quality profile to be used when analyzing the "{0}" project:
project_quality_profile.project_cannot_be_update_with_profile_x=The current project can not be updated with the following profile: "{0}".
project_quality_profile.profile_successfully_updated=Quality profile successfully updated.
+project_quality_profile.default_profile=default
#------------------------------------------------------------------------------
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>