aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-02-03 17:44:44 +0100
committerFabrice Bellingard <bellingard@gmail.com>2012-02-03 17:44:44 +0100
commit5057f9e10def538f2e89d7ac8ecc302cb573989c (patch)
treeff55d3d09d3361d05f61085d5e34bc993e74d1c2 /plugins
parent01906e4e61dcde195d2368c092f8471c0894079f (diff)
downloadsonarqube-5057f9e10def538f2e89d7ac8ecc302cb573989c.tar.gz
sonarqube-5057f9e10def538f2e89d7ac8ecc302cb573989c.zip
SONAR-3235 Make the numbers non breakable on the hotspot widgets
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb2
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb2
-rw-r--r--plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsTemplateTest.java15
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 @@
<td>
<%= link_to_resource(resource, resource.name, {:metric => metric.name}) -%>
</td>
- <td class="right">
+ <td class="right nowrap">
<%= format_measure(measure) -%>
</td>
<td class="barchart">
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 -%>
</a>
</td>
- <td class="right">
+ <td class="right nowrap">
<%= dashboard_configuration.selected_period? ? format_variation(m) : format_measure(m) -%>
</td>
<td class="barchart">
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 {
/**
* <pre>
- * 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
* </pre>
*/
@Test