diff options
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index 9eddc51e56a..2e42bf097eb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -90,10 +90,10 @@ module ApplicationHelper if mode=='days' label = "over %s days" % mode_param elsif mode=='version' - if !date.nil? - label = "since version %s (%s)" % [mode_param] + if date + label = "since version %s (%s)" % [mode_param, date.strftime("%Y %b %d")] else - label = "since version %s" % [mode_param, (date.strftime("%Y %b %d"))] + label = "since version %s" % mode_param end elsif mode=='previous_analysis' if !date.nil? |