From e7194d297211fb57ac548a7c796d9644716482e4 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Fri, 3 Oct 2014 15:45:54 +0200 Subject: [PATCH] SONAR-5617 Update package_design widget --- .../design/ui/widgets/PackageDesignWidget.java | 2 +- .../plugins/design/ui/widgets/package_design.html.erb | 11 ++++++----- .../src/main/resources/org/sonar/l10n/core.properties | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java index f5d18f61c2f..d79f9337d68 100644 --- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java +++ b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java @@ -33,7 +33,7 @@ public final class PackageDesignWidget extends AbstractRubyTemplate implements R } public String getTitle() { - return "Package design"; + return "File design"; } @Override diff --git a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/package_design.html.erb b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/package_design.html.erb index 5d9b7a2c796..b036433449a 100644 --- a/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/package_design.html.erb +++ b/plugins/sonar-design-plugin/src/main/resources/org/sonar/plugins/design/ui/widgets/package_design.html.erb @@ -4,6 +4,7 @@ package_cycles=measure('package_cycles') package_feedback_edges=measure('package_feedback_edges') package_tangles=measure('package_tangles') + dsm_url = ApplicationController.root_context + '/design/index/' + @resource.key %>
@@ -11,7 +12,7 @@
<%= message('widget.package_design.package_tangle_index') -%> - <%= format_measure(package_tangle_index, :suffix => '', :default => '-', :url => url_for_drilldown(package_tangle_index)) %> + <%= format_measure(package_tangle_index, :suffix => '', :default => '-', :url => dsm_url) %> <%= dashboard_configuration.selected_period? ? format_variation(package_tangle_index) : trend_icon(package_tangle_index) -%>
@@ -21,7 +22,7 @@ <%= message('widget.package_design.cycles.suffix') -%> > - <%= format_measure(package_cycles, :default => '-', :url => url_for_drilldown(package_cycles)) %> + <%= format_measure(package_cycles, :default => '-', :url => dsm_url) %> <%= dashboard_configuration.selected_period? ? format_variation(package_cycles) : trend_icon(package_cycles) -%>
@@ -39,7 +40,7 @@
<%= message('widget.package_design.between_packages.suffix') -%> - <%= format_measure(package_feedback_edges, :default => '-', :url => url_for_drilldown(package_feedback_edges)) %> + <%= format_measure(package_feedback_edges, :default => '-', :url => dsm_url) %> <%= dashboard_configuration.selected_period? ? format_variation(package_feedback_edges) : trend_icon(package_feedback_edges) -%>
@@ -49,7 +50,7 @@
<%= message('widget.package_design.between_files.suffix') -%> - <%= format_measure(package_tangles, :default => '-', :url => url_for_drilldown(package_tangles)) %> + <%= format_measure(package_tangles, :default => '-', :url => dsm_url) %> <%= dashboard_configuration.selected_period? ? format_variation(package_tangles) : trend_icon(package_tangles) -%>
@@ -58,4 +59,4 @@
-<% end %> \ No newline at end of file +<% end %> 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 d7232b45334..4359fdefa09 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1198,12 +1198,12 @@ widget.file_design.file_tangle_index=File tangle index widget.file_design.cycles.suffix=\ cycles widget.file_design.suspect_file_dependencies=Suspect file dependencies -widget.package_design.name=Package Design -widget.package_design.description=Reports on package dependency cycles and tangle index. -widget.package_design.package_tangle_index=Package tangle index +widget.package_design.name=File Design +widget.package_design.description=Reports on file and directory dependency cycles. +widget.package_design.package_tangle_index=Directory tangle index widget.package_design.cycles.suffix=\ cycles widget.package_design.dependencies_to_cut=Dependencies to cut -widget.package_design.between_packages.suffix=\ between packages +widget.package_design.between_packages.suffix=\ between directories widget.package_design.between_files.suffix=\ between files widget.hotspot_metric.name=Metric Hotspot -- 2.39.5