]> source.dussan.org Git - sonarqube.git/commitdiff
format the total number of issues/rules
authorStas Vilchik <vilchiks@gmail.com>
Mon, 21 Sep 2015 09:07:37 +0000 (11:07 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 21 Sep 2015 09:15:14 +0000 (11:15 +0200)
server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-header.hbs
server/sonar-web/src/main/js/apps/issues/templates/issues-workspace-header.hbs
server/sonar-web/test/medium/issues.spec.js

index 7076b1a06e197016e9345811bd39972c496c654e..2b9c918174f9bb8d977606a3f716ea04cf014e9f 100644 (file)
@@ -13,7 +13,7 @@
       {{#gt state.total 0}}
         <a class="js-prev icon-prev" title="{{t 'paging_previous'}}"></a>
         <span class="current">{{sum state.selectedIndex 1}} / <span
-            id="coding-rules-total">{{state.total}}</span></span>
+            id="coding-rules-total">{{formatMeasure state.total 'INT'}}</span></span>
         <a class="js-next icon-next" title="{{t 'paging_next'}}"></a>
       {{else}}
         <span class="current">0 / <span id="coding-rules-total">0</span></span>
index c18b14a84b4587bce107df251d30c882298da396..e0316a8a61d6adf9aaddae0edd0460beaaecb006 100644 (file)
@@ -40,7 +40,7 @@
         <span class="current">
           {{sum state.selectedIndex 1}}
           /
-          <span id="issues-total">{{state.total}}</span>
+          <span id="issues-total">{{formatMeasure state.total 'INT'}}</span>
         </span>
         <a class="js-next icon-next" title="{{t "paging_next"}}"></a>
       {{else}}
index 5b967215d7de533d60d04ecad5acca237a558d76..94b52657fc325dcb8d506ae7350e6676dcc2de41 100644 (file)
@@ -84,7 +84,7 @@ define(function (require) {
                 .checkElementExist('.js-new-search')
                 .checkElementExist('.js-filter-save-as')
 
-                .checkElementInclude('#issues-total', '4623')
+                .checkElementInclude('#issues-total', '4,623')
                 .checkElementExist('.js-prev')
                 .checkElementExist('.js-next')
                 .checkElementExist('.js-reload')