1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-29 22:37:59 +02:00

fix html report tag styling (#623)

This commit is contained in:
Marc Brugger
2021-05-21 08:13:20 +02:00
committed by GitHub
parent 433a67483a
commit c3f25b8ab3

View File

@@ -58,15 +58,14 @@ const templateContent = `
<script type="text/babel">
var IssueTag = React.createClass({
render: function() {
var level = ""
var level = "tag "
if (this.props.level === "HIGH") {
level = "is-danger";
}
if (this.props.level === "MEDIUM") {
level = "is-warning";
level += "is-danger";
} else if (this.props.level === "MEDIUM") {
level += "is-warning";
}
return (
<div className="tag { level }">
<div className={ level }>
{ this.props.label }: { this.props.level }
</div>
);