quality_profiles.restore_built_in_profiles_confirmation=Are you sure you want to restore '{0}' profile(s) for '{1}' ?
quality_profiles.including=including
quality_profiles.deprecated=deprecated
+quality_profiles.manage_rules_tooltip=Manage rules of this profile
+quality_profiles.see_rules_tooltip=See rules of this profile
#------------------------------------------------------------------------------
#
<div class="widget-measure widget-measure-main">
<span class="widget-label"><%= message('rules') -%></span>
<span nowrap>
- <a class="widget-link" href="<%= "#{ApplicationController.root_context}/coding_rules#qprofile=#{@profile.key().toString()}|activation=true|languages=#{@profile.language()}" -%>">
+ <% tooltip = message('quality_profiles.see_rules_tooltip')
+ tooltip = message('quality_profiles.manage_rules_tooltip') if profiles_administrator?
+ %>
+ <a class="widget-link"
+ href="<%= "#{ApplicationController.root_context}/coding_rules#qprofile=#{@profile.key().toString()}|activation=true|languages=#{@profile.language()}" -%>"
+ title="<%= tooltip %>">
<span><%= active_rules -%></span>
</a>
</span>
</div>
<% if @deprecated_active_rules > 0 %>
<div class="widget-measure">
- <%= message('quality_profiles.including') %> <a href="<%= "#{ApplicationController.root_context}/coding_rules#qprofile=#{@profile.key().toString()}|activation=true|languages=#{@profile.language()}|statuses=DEPRECATED" -%>"><%= @deprecated_active_rules -%></a> <%= message('quality_profiles.deprecated') %>
+ <%= message('quality_profiles.including') %>
+ <a href="<%= "#{ApplicationController.root_context}/coding_rules#qprofile=#{@profile.key().toString()}|activation=true|languages=#{@profile.language()}|statuses=DEPRECATED" -%>">
+ <%= @deprecated_active_rules -%>
+ </a> <%= message('quality_profiles.deprecated') %>
</div>
<% end %>
</div>