From 0b32caf3d02f4b1b4b5a60ff4636c17307e07e00 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 27 Sep 2012 15:53:48 +0200 Subject: [PATCH] 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 --- .../src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb | 2 +- sonar-server/src/main/webapp/stylesheets/dashboard.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5