Skip to content

Commit

Permalink
fix html report tag styling (securego#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito authored May 21, 2021
1 parent 433a674 commit c3f25b8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions report/html/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit c3f25b8

Please sign in to comment.