{{/notEq}}
<span class="note">{{langName}}</span>
+
+ <span class="note" data-toggle="tooltip" data-placement="bottom"
+ title="{{t 'coding_rules.type.tooltip' this.type}}">
+ {{issueType this.type}}
+ </span>
{{#notEmpty tags}}
<i class="icon-tags"></i>
<span class="note">{{join tags ', '}}</span>
{{/notEmpty}}
-
- <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> <i class="icon-dropdown"></i>
</a>
* 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);
};