From 2d2d51f2dce80e91431ea01b90bc5ebd139ffd02 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 3 Dec 2010 21:10:09 +0000 Subject: [PATCH] SONAR-249 correctly display last analysis and date modes in the select box --- .../src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 81eed039cd6..c72240dcfc2 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 @@ -38,6 +38,10 @@ module DashboardHelper label = "Last %s days" % mode_param elsif mode=='version' label = "Version %s" % mode_param + elsif mode=='last_analysis' + label = "Last analysis (%s)" % localize(Date.parse(mode_param)) + elsif mode=='date' + label = localize(Date.parse(mode_param)) end if label selected=(params[:var]==index.to_s ? 'selected' : '') -- 2.39.5