Skip to content

Commit

Permalink
#1 fix colors for long report
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Apr 7, 2017
1 parent 65e7646 commit 6d37600
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions thehive-templates/Nessus_1_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@
.report-Nessus dl {
margin-bottom: 2px;
}
.report-Nessus .label-NessusCritical {
background-color: #9b59b6;
.report-Nessus .nessus-info {
background-color: #3B4CA1;
}
.report-Nessus .progress-bar-NessusCritical {
background-color: #9b59b6;
.report-Nessus .nessus-low {
background-color: #79AB3D;
}
.report-Nessus .nessus-medium {
background-color: #D5C920;
}
.report-Nessus .nessus-high {
background-color: #D39F27;
}
.report-Nessus .nessus-critical {
background-color: #C61010;
}
</style>

Expand Down Expand Up @@ -60,19 +69,19 @@ <h4>Scan Reports</h4>
<dt>{{host.severity}} vulnerabilities</dt>
<dd>
<div class="progress">
<div class="progress-bar progress-bar-info" ng-style="{width:(host.info *100)/(host.severity)+'%'}">
<div class="progress-bar nessus-info" ng-style="{width:(host.info *100)/(host.severity)+'%'}">
<span>{{host.info}}</span>
</div>
<div class="progress-bar progress-bar-success" ng-style="{width:(host.low *100)/(host.severity)+'%'}">
<div class="progress-bar nessus-low" ng-style="{width:(host.low *100)/(host.severity)+'%'}">
<span>{{host.low}}</span>
</div>
<div class="progress-bar progress-bar-warning" ng-style="{width:(host.medium *100)/(host.severity)+'%'}">
<div class="progress-bar nessus-medium" ng-style="{width:(host.medium *100)/(host.severity)+'%'}">
<span>{{host.medium}}</span>
</div>
<div class="progress-bar progress-bar-danger" ng-style="{width:(host.high *100)/(host.severity)+'%'}">
<div class="progress-bar nessus-high" ng-style="{width:(host.high *100)/(host.severity)+'%'}">
<span>{{host.danger}}</span>
</div>
<div class="progress-bar progress-bar-NessusCritical" ng-style="{width:(host.critical *100)/(host.severity)+'%'}">
<div class="progress-bar nessus-critical" ng-style="{width:(host.critical *100)/(host.severity)+'%'}">
<span>{{host.critical}}</span>
</div>
</div>
Expand All @@ -90,19 +99,19 @@ <h4>Scan Reports</h4>
<tr>
<td style="text-align: center">
<span ng-switch="vuln.severity">
<span ng-switch-when="0" class="label label-info">
<span ng-switch-when="0" class="label nessus-info">
INFO
</span>
<span ng-switch-when="1" class="label label-success">
<span ng-switch-when="1" class="label nessus-low">
LOW
</span>
<span ng-switch-when="2" class="label label-warning">
<span ng-switch-when="2" class="label nessus-medium">
MEDIUM
</span>
<span ng-switch-when="3" class="label label-danger">
<span ng-switch-when="3" class="label nessus-high">
HIGH
</span>
<span ng-switch-when="4" class="label label-NessusCritical">
<span ng-switch-when="4" class="label nessus-critical">
CRITICAL
</span>
</span>
Expand Down

0 comments on commit 6d37600

Please sign in to comment.