mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +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">
|
<script type="text/babel">
|
||||||
var IssueTag = React.createClass({
|
var IssueTag = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var level = ""
|
var level = "tag "
|
||||||
if (this.props.level === "HIGH") {
|
if (this.props.level === "HIGH") {
|
||||||
level = "is-danger";
|
level += "is-danger";
|
||||||
}
|
} else if (this.props.level === "MEDIUM") {
|
||||||
if (this.props.level === "MEDIUM") {
|
level += "is-warning";
|
||||||
level = "is-warning";
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="tag { level }">
|
<div className={ level }>
|
||||||
{ this.props.label }: { this.props.level }
|
{ this.props.label }: { this.props.level }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue