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:
@@ -1,4 +1,11 @@
|
||||
h2 {
|
||||
background-color: blue;
|
||||
color: white;
|
||||
}
|
||||
|
||||
img#logo {
|
||||
width: 25%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user