Merge pull request #716 from Yamato-Security/714-add-logopng-in-html-report

Changed HTML report structure to Improve HTML report
This commit is contained in:
DustInDark
2022-09-28 09:52:54 +09:00
committed by GitHub
2 changed files with 12 additions and 2 deletions

View File

@@ -1,4 +1,11 @@
h2 {
background-color: blue;
color: white;
}
img#logo {
width: 25%;
display: block;
margin-left: auto;
margin-right: auto;
}

View File

@@ -93,6 +93,7 @@ pub fn create_html_file(input_html: String, path_str: String) {
}
let mut html_writer = BufWriter::new(File::create(path).unwrap());
let html_data = format!(
"{}",
html! {
@@ -104,8 +105,10 @@ pub fn create_html_file(input_html: String, path_str: String) {
link(rel="icon", type="image/png", href="./favicon.png");
}
body {
img(id="logo", src = "./logo.png");
: Raw(input_html.clone().as_str());
section {
img(id="logo", src = "./logo.png");
: Raw(input_html.as_str());
}
}
}