diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-27 15:53:48 +0200 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-27 15:54:40 +0200 |
commit | 0b32caf3d02f4b1b4b5a60ff4636c17307e07e00 (patch) | |
tree | 335b6678f6634623938c1e3468418161387a4561 | |
parent | 36153117cc023f9a78b5ff17b7515a149eddf634 (diff) | |
download | sonarqube-0b32caf3d02f4b1b4b5a60ff4636c17307e07e00.tar.gz sonarqube-0b32caf3d02f4b1b4b5a60ff4636c17307e07e00.zip |
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
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb | 2 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/stylesheets/dashboard.css | 4 |
2 files changed, 5 insertions, 1 deletions
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; |