From: Julien Lancelot Date: Wed, 18 Jun 2014 13:13:14 +0000 (+0200) Subject: SONAR-5149 Add tooltip on number of rules X-Git-Tag: 4.4-RC1~354 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=438389fb07fb23adfa3c7773f6598b353c031ed0;p=sonarqube.git SONAR-5149 Add tooltip on number of rules --- diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index fdd8d4224a1..10b3ef7cfac 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1625,6 +1625,8 @@ quality_profiles.restore_built_in_profiles=Restore Built-in Profiles 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 #------------------------------------------------------------------------------ # diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/show.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/show.html.erb index b9818a6f0c5..618276a7670 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/show.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/show.html.erb @@ -10,7 +10,12 @@
<%= message('rules') -%> - "> + <% tooltip = message('quality_profiles.see_rules_tooltip') + tooltip = message('quality_profiles.manage_rules_tooltip') if profiles_administrator? + %> + " + title="<%= tooltip %>"> <%= active_rules -%> @@ -18,7 +23,10 @@
<% if @deprecated_active_rules > 0 %>
- <%= message('quality_profiles.including') %> "><%= @deprecated_active_rules -%> <%= message('quality_profiles.deprecated') %> + <%= message('quality_profiles.including') %>  + "> + <%= @deprecated_active_rules -%> +  <%= message('quality_profiles.deprecated') %>
<% end %>