From: Fabrice Bellingard Date: Fri, 3 Feb 2012 16:44:44 +0000 (+0100) Subject: SONAR-3235 Make the numbers non breakable on the hotspot widgets X-Git-Tag: 2.14~182 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5057f9e10def538f2e89d7ac8ecc302cb573989c;p=sonarqube.git SONAR-3235 Make the numbers non breakable on the hotspot widgets --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb index 47368a29e23..48935341c98 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb @@ -66,7 +66,7 @@ <%= link_to_resource(resource, resource.name, {:metric => metric.name}) -%> - + <%= format_measure(measure) -%> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb index 988f6c606c6..06e73423ad1 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb @@ -86,7 +86,7 @@ <%= h rule.name -%> - + <%= dashboard_configuration.selected_period? ? format_variation(m) : format_measure(m) -%> diff --git a/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsTemplateTest.java b/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsTemplateTest.java index ed065d1ccee..3e462762982 100644 --- a/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsTemplateTest.java +++ b/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsTemplateTest.java @@ -51,19 +51,14 @@ public class NewViolationsTemplateTest { /** *
-   * Subject: Review #1
-   * From: Freddy Mallet
+   * Subject: New violations for project Foo
+   * From: Sonar
    * 
-   * Project: Sonar
-   * Resource: org.sonar.server.ui.DefaultPages
-   * 
-   * Utility classes should not have a public or default constructor.
-   * 
-   * Comment:
-   *   This is my first comment
+   * Project: Foo
+   * New violations on last analysis: 32
    * 
    * --
-   * See it in Sonar: http://nemo.sonarsource.org/review/view/1
+   * See it in Sonar: http://nemo.sonarsource.org/drilldown/measures/org.sonar.foo:foo?metric=new_violations&period=2
    * 
*/ @Test