diff options
Diffstat (limited to 'server/sonar-web/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb index 1dd75591199..a42726f1e45 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb @@ -78,6 +78,12 @@ module DashboardHelper end end + def short_period_label(snapshot, index) + if snapshot.project_snapshot + Api::Utils.java_facade.getPeriodLabel(index) + end + end + def violation_period_select_options(snapshot, index) return nil if snapshot.nil? || snapshot.project_snapshot.nil? mode=snapshot.project_snapshot.send "period#{index}_mode" |