]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-249 correctly display last analysis and date modes in the select box
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 3 Dec 2010 21:10:09 +0000 (21:10 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 3 Dec 2010 21:10:09 +0000 (21:10 +0000)
sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb

index 81eed039cd69b083420603ec789dce4c5d11a0cb..c72240dcfc225e53a4c685a6c666d206ae5a5d7c 100644 (file)
@@ -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' : '')