Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #77 from luzhongyang/feature/issue/319
Browse files Browse the repository at this point in the history
fix pdf report bug
  • Loading branch information
exexute authored Nov 5, 2021
2 parents 71f9cde + 8c17bb3 commit 19ca598
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions templates/pdf.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% load i18n %}
<!DOCTYPE html>
<html>
<head>
Expand Down Expand Up @@ -86,9 +85,7 @@
}

.tablelist tr td, .tablelist tr th {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;

}

table.tablelist {font-family: verdana,arial,sans-serif;color:#333333;border-width: 1px;border-color: #666666;border-collapse: collapse;}
Expand Down Expand Up @@ -421,7 +418,7 @@ <h2 align="center">{{ project.name }}</h2>

<p class="center_font"> {{ time_str }}</p>
<p class="center_font">{{ i18n.security_testing_report }}</p>
<div style="margin: 0px 20px;">
<div style="margin: 0px 20px;max-width:1180px">
<h2 style="page-break-before: always;margin-top: 0px">{{ i18n.first_project_information }}</h2>
<table class="tablelist" style="width: 100%" cellspacing="0">
<tbody>
Expand All @@ -444,7 +441,7 @@ <h2 style="page-break-before: always;margin-top: 0px">{{ i18n.first_project_info
</tbody>
</table>

<h2 style="margin-top: 0px">{{ i18n.second_the_result_analysis }}</h2>
<h2 style="margin-top: 12px">{{ i18n.second_the_result_analysis }}</h2>
<h3>2.1 {{ i18n.vulnerability_severity_levels_distribution }}</h3>
<p class="text">
{{ levelCountStr }}
Expand All @@ -453,8 +450,8 @@ <h3>2.2 {{ i18n.distribution_of_vulnerability }}</h3>

<table class="tablelist" style="width: 100%" cellspacing="0">
<tbody>
<tr class="tale-item table-item-td">
<th class="left" style="text-align: left;width: 60%">{{ i18n.severity_levels }}</th>
<tr class="tale-item table-item-td" style="width:100px">
<th class="left" style="text-align: left;width: 100px">{{ i18n.severity_levels }}</th>
<th class="right" style="width: 20%">{{ i18n.vulnerability_type_name }}</th>
<th class="right" style="width: 20%">{{ i18n.number }}</th>
</tr>
Expand All @@ -474,9 +471,9 @@ <h3>2.3 {{ i18n.vulnerability_details }}</h3>
<h4>{{ vulTypeDetail.title }}</h4>

{% for oneVul in vulTypeDetail.vuls %}
<p>{{ oneVul.title }}</p>
<p style="font-size:18px">{{ oneVul.title }}</p>
<br/>
<p style="font-weight:bold;font-style:italic">{{ oneVul.summary }}</p>
<p style="font-style:italic;font-size:16px">{{ oneVul.summary }}</p>
<br/>
<!--漏洞列表图start-->
<table class="tablelist" style="width: 100%" cellspacing="0">
Expand Down Expand Up @@ -508,9 +505,9 @@ <h4>{{ vulTypeDetail.title }}</h4>
</tbody>
</table>
<br/>
<p style="font-weight:bold;font-style:italic">{{oneVul.description}}</p>
<p style="font-style:italic">{{oneVul.description}}</p>
<br/>
<p>
<p style="line-height:20px">
{{oneVul.detail}}
</p>
<br/>
Expand Down

0 comments on commit 19ca598

Please sign in to comment.