]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5353 Add caption when a rule template is active on some profiles
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 18 Jun 2014 20:42:11 +0000 (22:42 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 18 Jun 2014 20:42:11 +0000 (22:42 +0200)
sonar-core/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
sonar-server/src/main/less/coding-rules.less

index 10b3ef7cfaca90369252213958841dbb5e6e0bec..0d85961de5fabd55101b31a52ee561c0588e6cb3 100644 (file)
@@ -1730,6 +1730,7 @@ coding_rules.parameters=Parameters
 coding_rules.parameters.default_value=Default Value:
 coding_rules.permalink=Permalink
 coding_rules.quality_profiles=Quality Profiles
+coding_rules.quality_profiles.template_caption=This rule template was activated on the following profiles in previous versions of SonarQube. It is not possible anymore to do so. Instead, please create a custom rule.
 coding_rules.quality_profile=Quality Profile
 coding_rules.reactivate=Reactivate
 coding_rules.reactivate.help=A rule with the same key has been previously deleted. Please reactivate the existing rule or modify the key to create a new rule.
index 5d2829b2f18cdbe425d607d55d50eb5e602636b9..3a66b0210f98b290a84ffbb1687a2a7d2245c53d 100644 (file)
   {{#if canWrite}}{{#unless isTemplate}}<div class="button-group coding-rules-detail-quality-profiles-activation">
     <button id="coding-rules-quality-profile-activate">{{t 'coding_rules.activate'}}</button>
   </div>{{/unless}}{{/if}}
+  {{#if isTemplate}}
+  <div class="coding-rules-detail-quality-profiles-template-caption warning">{{t 'coding_rules.quality_profiles.template_caption'}}</div>
+  {{/if}}
   <div id="coding-rules-detail-quality-profiles"></div>
 </div>
 {{/if}}
index 3a2a0029851f45e6fae9aa349b6477481290b338..13fd182c6a712374ff6c85b74e7a05065b8822da 100644 (file)
   margin-left: @navigatorPadding;
 }
 
+.coding-rules-detail-quality-profiles-template-caption {
+  margin-bottom: @navigatorPadding;
+}
 
 // Bulk Change
 .coding-rules-bulk-change-dropdown {