]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3563 Link on widget title if global dahsboard
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Thu, 27 Sep 2012 13:53:48 +0000 (15:53 +0200)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Thu, 27 Sep 2012 13:54:40 +0000 (15:54 +0200)
=> Add a link on the project name when a project widget is displayed
   in a global dashboard

sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb
sonar-server/src/main/webapp/stylesheets/dashboard.css

index fdbe448c5fc387ae96e979941847d3a1a4e046a0..49b9cbdf1bc7b810d5fe07b462462e5081eeb3b1 100644 (file)
@@ -121,7 +121,7 @@ module DashboardHelper
   end
 
   def widget_title(widget)
-    resource_name=h(@resource.name) if @resource && @dashboard.global && !widget.java_definition.global
+    resource_name=link_to(@resource.name, {:controller => 'dashboard', :action => 'index', :id => @resource.id}) if @resource && @dashboard.global && !widget.java_definition.global
 
     [resource_name, @widget_title].compact.join(' - ')
   end
index a8e10f9580f41146b1ae90ede313def8a6ac5816..f7216704e12e228a4c7893606f04a62d46a1075e 100644 (file)
   vertical-align: middle;
 }
 
+#dashboard .widget-title a {
+  color: #FEFEFE;
+}
+
 /*CONFIGURATION*/
 #dashboard #configure {
   position: relative;