Skip to content

Commit

Permalink
templates update
Browse files Browse the repository at this point in the history
  • Loading branch information
1modm committed Nov 11, 2021
1 parent 1647125 commit 8e58741
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ PeTeReport (**Pe**n**Te**st **Report**) is written in Django and Python 3 with t
- [MD Sample](https://github.com/1modm/petereport/raw/main/sample_reports/PEN-MD_Offensive_Security_Network_202108181118.md "MD Sample")
- [CSV Sample](https://github.com/1modm/petereport/raw/main/sample_reports/PEN-CSV_Offensive_Security_Network_202108181118.csv "CSV Sample")


12 changes: 11 additions & 1 deletion app/preport/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3 class="card-title">
</div>

<div class="card-body">
<div id="CWEPieChartEcharts" style="width:90%; height:350px;"></div>
<div id="CWEPieChartEcharts" style="width:100%; height:350px;"></div>
</div>

</div>
Expand Down Expand Up @@ -234,6 +234,16 @@ <h3 class="card-title">
trigger: 'item',
formatter: '{b} <br>{c}'
},
toolbox: {
show: true,
feature: {
saveAsImage: {
show: true,
title: "Save Image",
name: "Breakdown_by_Categories"
}
}
},
series: [
{
name: 'CWE',
Expand Down
22 changes: 21 additions & 1 deletion app/preport/templates/reports/report_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ <h3 class="card-title">
<div class="card-body">

<center>
<div id="CWEPieChartEcharts" style="width:90%; height:350px;"></div>
<div id="CWEPieChartEcharts" style="width:100%; height:350px;"></div>
</center>

</div>
Expand Down Expand Up @@ -791,6 +791,16 @@ <h4 class="modal-title">Are you sure?</h4>
legend: {
data:['Severity']
},
toolbox: {
show: true,
feature: {
saveAsImage: {
show: true,
title: "Save Image",
name: "Breakdown_by_Severity"
}
}
},
xAxis: {
type: 'category',
data: ["Critical","High","Medium","Low","Info"]
Expand Down Expand Up @@ -853,6 +863,16 @@ <h4 class="modal-title">Are you sure?</h4>
trigger: 'item',
formatter: '{b} <br>{c}'
},
toolbox: {
show: true,
feature: {
saveAsImage: {
show: true,
title: "Save Image",
name: "Breakdown_by_Categories"
}
}
},
series: [
{
name: 'CWE',
Expand Down
6 changes: 5 additions & 1 deletion app/preport/templates/tpl/html/html_finding.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@

<tr>
<td style="width: 15%">**Description**</td>
<td>{{finding.description|safe}}</td>
<td>

{{finding.description|safe}}

</td>
</tr>

<tr>
Expand Down

0 comments on commit 8e58741

Please sign in to comment.