From: Fabrice Bellingard Date: Thu, 27 Sep 2012 13:53:48 +0000 (+0200) Subject: SONAR-3563 Link on widget title if global dahsboard X-Git-Tag: 3.3~188 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b32caf3d02f4b1b4b5a60ff4636c17307e07e00;p=sonarqube.git SONAR-3563 Link on widget title if global dahsboard => Add a link on the project name when a project widget is displayed in a global dashboard --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb index fdbe448c5fc..49b9cbdf1bc 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb @@ -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 diff --git a/sonar-server/src/main/webapp/stylesheets/dashboard.css b/sonar-server/src/main/webapp/stylesheets/dashboard.css index a8e10f9580f..f7216704e12 100644 --- a/sonar-server/src/main/webapp/stylesheets/dashboard.css +++ b/sonar-server/src/main/webapp/stylesheets/dashboard.css @@ -52,6 +52,10 @@ vertical-align: middle; } +#dashboard .widget-title a { + color: #FEFEFE; +} + /*CONFIGURATION*/ #dashboard #configure { position: relative;