aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/libs
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-10-23 14:07:09 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-10-23 15:03:50 +0200
commitc87df1b090c334e5844d4c2f39e5c8e2db9af5cc (patch)
tree33222baeed44f7805cb8e02a72983d684806aa13 /server/sonar-web/src/main/js/libs
parentc754acd1a7aa7e4b9cda202d7baf210fa8693e86 (diff)
downloadsonarqube-c87df1b090c334e5844d4c2f39e5c8e2db9af5cc.tar.gz
sonarqube-c87df1b090c334e5844d4c2f39e5c8e2db9af5cc.zip
SONAR-6360 add detailed "Code Coverage" panel for the "Overview" main page
Diffstat (limited to 'server/sonar-web/src/main/js/libs')
-rw-r--r--server/sonar-web/src/main/js/libs/application.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/libs/application.js b/server/sonar-web/src/main/js/libs/application.js
index 5338ae64886..8692a73f9cb 100644
--- a/server/sonar-web/src/main/js/libs/application.js
+++ b/server/sonar-web/src/main/js/libs/application.js
@@ -492,6 +492,15 @@ function closeModalWindow () {
return l10nKey !== result ? result : value;
};
+
+ /**
+ * Format a milliseconds measure
+ * @param {number} value
+ */
+ var millisecondsFormatter = function (value) {
+ return value + ' ms';
+ };
+
/**
* Format a measure according to its type
* @param measure
@@ -517,7 +526,8 @@ function closeModalWindow () {
'WORK_DUR': durationFormatter,
'SHORT_WORK_DUR': shortDurationFormatter,
'RATING': ratingFormatter,
- 'LEVEL': levelFormatter
+ 'LEVEL': levelFormatter,
+ 'MILLISEC': millisecondsFormatter
};
if (measure != null && type != null) {
formatted = formatters[type] != null ? formatters[type](measure) : measure;