quality_profiles.last_version_x_with_date=last version {0} ({1})
quality_profiles.version_x_with_date=version {0} ({1})
quality_profiles.version_x=version {0}
-quality_profiles.profile_version=Profile version
-quality_profiles.severity_changed_from_x_to=Severity changed from {0}<b>{1}</b> to
-quality_profiles.severity_was_x=Severity was {0}<b>{1}</b>
-quality_profiles.severity_set_to_x=Severity set to {0}<b>{1}</b>
quality_profiles.parameter_set_to_x=Parameter <b>{0}</b> set to <b>{1}</b>
-quality_profiles.parameter_was_x=Parameter <b>{0}</b> was <b>{1}</b>
-quality_profiles.parameter_reset_to_default_value_x=Parameter <b>{0}</b> reset to default value (was <b>{1}</b>)
-quality_profiles.parameter_changed_from_x_to_x=Parameter <b>{0}</b> changed from <b>{1}</b> to <b>{2}</b>
quality_profiles.only_in_profile_x=Only in {0}
quality_profiles.with_different_configuration=With different configuration
quality_profiles.with_same_configuration=With same configuration
quality_profiles.deprecated=deprecated
quality_profiles.manage_rules_tooltip=Manage rules of this profile
quality_profiles.see_rules_tooltip=See rules of this profile
-quality_profiles.changelog.empty=No changes have been done.
quality_profiles.changelog_from=Changelog from
+quality_profiles.changelog.empty=No changes have been done.
quality_profiles.changelog.activated=Activated
quality_profiles.changelog.deactivated=Deactivated
quality_profiles.changelog.updated=Updated
+quality_profiles.changelog.parameter_reset_to_default_value_x=Parameter <b>{0}</b> reset to default value
#------------------------------------------------------------------------------
redirect_to :action => 'inheritance', :id => params[:id]
end
- # GET /profiles/changelog?id=<profile id>
+ # GET /profiles/changelog?key=<profile key>
def changelog
- require_parameters 'id'
+ require_parameters 'key'
- @profile = Internal.quality_profiles.profile(params[:id].to_i)
+ @profile = Internal.component(Java::OrgSonarServerQualityprofile::QProfileService.java_class).getByKey(params[:key])
search = {'profileKeys' => @profile.key().to_s, 'since' => params[:since], 'to' => params[:to]}
@changes = Internal.component(Java::OrgSonarServerActivity::RubyActivityService.java_class).search(search)
<a href="<%= url_for :controller => 'profiles', :action => 'inheritance', :id => @profile.id -%>" <%= "class='selected'" if selected_tab=='inheritance' -%> id="tab-inheritance"><%= message('quality_profiles.profile_inheritance') -%></a>
</li>
<li>
- <a href="<%= url_for :controller => 'profiles', :action => 'changelog', :id => @profile.id -%>" <%= "class='selected'" if selected_tab=='changelog' -%> id="tab-changelog"><%= message('changelog') -%></a>
+ <a href="<%= url_for :controller => 'profiles', :action => 'changelog', :key => @profile.key() -%>" <%= "class='selected'" if selected_tab=='changelog' -%> id="tab-changelog"><%= message('changelog') -%></a>
</li>
<% if new_tab %>
<li>
<%= message('quality_profiles.changelog.empty') -%>
<% else %>
<form class="marginbottom10" method="get" action="<%= ApplicationController.root_context %>/profiles/changelog">
- <input name="id" type="hidden" value="<%= @profile.id %>"/>
+ <input name="key" type="hidden" value="<%= @profile.key() %>"/>
<%= message('quality_profiles.changelog_from') -%>
<input name="since" type="text" value="<%= params['since'] %>"/>
<%= message('to').downcase -%>
<br/>
<% end %>
<% change.parameters().each do |param_key, param_value| %>
- <%= message('quality_profiles.parameter_set_to_x', :params => [param_key, param_value]) -%>
+ <% if !param_value.empty? %>
+ <%= message('quality_profiles.parameter_set_to_x', :params => [param_key, param_value]) -%>
+ <% else %>
+ <%= message('quality_profiles.changelog.parameter_reset_to_default_value_x', :params => [param_key]) -%>
+ <% end %>
<br/>
<% end %>
</td>