]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix test status icons
authorStas Vilchik <vilchiks@gmail.com>
Wed, 11 Jun 2014 06:07:18 +0000 (12:07 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 11 Jun 2014 06:07:18 +0000 (12:07 +0600)
sonar-server/src/main/hbs/component-viewer/coveragePopup.hbs
sonar-server/src/main/js/common/handlebars-extensions.js
sonar-server/src/main/less/icons.less

index 6c9bbc6733924c2933bf9e9d9627cc61149eabbd..dc559ea3edd1efe7040ab247756d84179e5c6bc7 100644 (file)
@@ -9,7 +9,7 @@
       <ul class="component-viewer-popup-list">
         {{#each tests}}
           <li class="component-viewer-popup-test" title="{{name}}">
-            <i class="component-viewer-popup-test-status {{alertIconClass status}}"></i>
+            <i class="component-viewer-popup-test-status {{testStatusIconClass status}}"></i>
             <span class="component-viewer-popup-test-name">
               <a class="component-viewer-popup-test-file link-action" title="{{name}}"
                  data-key="{{../file.key}}" data-method="{{name}}">
index bc43649e1db21cb3556abbeefcfbe9314ee8cb10..b67f5e2eb0ac2e7a574fd6263f04d4e56ed7b733 100644 (file)
@@ -51,6 +51,12 @@ define(['handlebars', 'moment'], function (Handlebars, moment) {
     );
   });
 
+  Handlebars.registerHelper('testStatusIconClass', function(status) {
+    return new Handlebars.SafeString('' +
+            'icon-test-status-' + status.toLowerCase()
+    );
+  });
+
   Handlebars.registerHelper('alertIconClass', function(alert) {
     return new Handlebars.SafeString(
         'icon-alert-' + alert.toLowerCase()
index cd745ff2fc26eff75edb14937c9c03c4bf061fe6..76c2abcb1da0dd08e1c899adb8dc2813b98f0625 100644 (file)
@@ -130,6 +130,11 @@ a[class^="icon-"], a[class*=" icon-"] {
   font-size: @iconFontSize;
 }
 .icon-test-status-failure:before {
+  content: "\f000";
+  color: @orange;
+  font-size: @iconFontSize;
+}
+.icon-test-status-error:before {
   content: "\f057";
   color: @red;
   font-size: @iconFontSize;