diff --git a/internal/output/html.go b/internal/output/html.go index 5aa8e221a6..f64d742375 100644 --- a/internal/output/html.go +++ b/internal/output/html.go @@ -525,5 +525,5 @@ func PrintHTMLResults(vulnResult *models.VulnerabilityResults, outputWriter io.W tmpl := template.Must(template.New("").Funcs(funcMap).ParseFS(templates, TemplateDir)) // Execute template - return tmpl.ExecuteTemplate(outputWriter, "report_template.html", htmlResult) + return tmpl.ExecuteTemplate(outputWriter, "report.gohtml", htmlResult) } diff --git a/internal/output/html/package_table_template.html b/internal/output/html/package_table.gohtml similarity index 100% rename from internal/output/html/package_table_template.html rename to internal/output/html/package_table.gohtml diff --git a/internal/output/html/package_view.gohtml b/internal/output/html/package_view.gohtml new file mode 100644 index 0000000000..135a1962b5 --- /dev/null +++ b/internal/output/html/package_view.gohtml @@ -0,0 +1,2 @@ +{{ $allPackageResults := getAllPackageResults .}} +{{ template "package_table.gohtml" $allPackageResults }} diff --git a/internal/output/html/package_view_template.html b/internal/output/html/package_view_template.html deleted file mode 100644 index 8af5cbb96c..0000000000 --- a/internal/output/html/package_view_template.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ $allPackageResults := getAllPackageResults .}} -{{ template "package_table_template.html" $allPackageResults }} diff --git a/internal/output/html/report_template.html b/internal/output/html/report.gohtml similarity index 93% rename from internal/output/html/report_template.html rename to internal/output/html/report.gohtml index 61986c82c7..d0de9fef80 100644 --- a/internal/output/html/report_template.html +++ b/internal/output/html/report.gohtml @@ -39,7 +39,7 @@