From 5057f9e10def538f2e89d7ac8ecc302cb573989c Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 3 Feb 2012 17:44:44 +0100 Subject: [PATCH] SONAR-3235 Make the numbers non breakable on the hotspot widgets --- .../core/widgets/hotspots/hotspot_metric.html.erb | 2 +- .../hotspots/hotspot_most_violated_rules.html.erb | 2 +- .../newviolations/NewViolationsTemplateTest.java | 15 +++++---------- 3 files changed, 7 insertions(+), 12 deletions(-) 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 -- 2.39.5