mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
fix html report tag styling (#623)
This commit is contained in:
parent
433a67483a
commit
c3f25b8ab3
1 changed files with 5 additions and 6 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue