aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-11 15:28:09 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-03-11 15:28:09 +0100
commite49268378aba0cd00d59a9356eb9d59c60aa08f7 (patch)
treeef259a54f1669361213d8f4be3b89a5b00c362bc /server/sonar-web
parent2155afe39cae6030469e042dbf754566db738eca (diff)
downloadsonarqube-e49268378aba0cd00d59a9356eb9d59c60aa08f7.tar.gz
sonarqube-e49268378aba0cd00d59a9356eb9d59c60aa08f7.zip
drop colorized labels for issue and rule types
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs9
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/issueType.js9
2 files changed, 6 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs b/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs
index 608d10f292b..2948ec2b374 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs
+++ b/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs
@@ -27,15 +27,16 @@
&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>
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/issueType.js b/server/sonar-web/src/main/js/helpers/handlebars/issueType.js
index 9dfe9e4abcf..3cabe69bc7f 100644
--- a/server/sonar-web/src/main/js/helpers/handlebars/issueType.js
+++ b/server/sonar-web/src/main/js/helpers/handlebars/issueType.js
@@ -17,15 +17,8 @@
* 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);
};