]> source.dussan.org Git - sonarqube.git/commitdiff
drop colorized labels for issue and rule types
authorStas Vilchik <vilchiks@gmail.com>
Fri, 11 Mar 2016 14:28:09 +0000 (15:28 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 11 Mar 2016 14:28:09 +0000 (15:28 +0100)
server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs
server/sonar-web/src/main/js/helpers/handlebars/issueType.js

index 608d10f292b49d7932366529568bf0852bcc42a3..2948ec2b37481d16cc06e8cb34467a12cadf1f2b 100644 (file)
           &nbsp;&nbsp;&nbsp;
         {{/notEq}}
         <span class="note">{{langName}}</span>
+        &nbsp;&nbsp;&nbsp;
+        <span class="note" data-toggle="tooltip" data-placement="bottom"
+              title="{{t 'coding_rules.type.tooltip' this.type}}">
+          {{issueType this.type}}
+        </span>
         {{#notEmpty tags}}
           &nbsp;&nbsp;&nbsp;
           <i class="icon-tags"></i>
           <span class="note">{{join tags ', '}}</span>
         {{/notEmpty}}
-        &nbsp;&nbsp;&nbsp;
-        <span data-toggle="tooltip" data-placement="bottom" title="{{t 'coding_rules.type.tooltip' this.type}}">
-          {{issueType this.type}}
-        </span>
         <a class="js-rule-filter link-no-underline spacer-left" href="#">
           <i class="icon-filter icon-half-transparent"></i>&nbsp;<i class="icon-dropdown"></i>
         </a>
index 9dfe9e4abcfc4d1d23438b88fb837a3c464a0b64..3cabe69bc7f8e023206ccf3d0ab99a11b63940c9 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import Handlebars from 'handlebars/runtime';
-
 import { translate } from '../../helpers/l10n';
 
 module.exports = function (issueType) {
-  const isCodeSmell = issueType === 'CODE_SMELL';
-  const className = 'badge ' + (isCodeSmell ? 'badge-warning' : 'badge-danger');
-
-  return new Handlebars.default.SafeString(
-      `<span class="${className}">${translate('issue.type', issueType)}</span>`
-  );
+  return translate('issue.type', issueType);
 };