fix: Update html.tpl for trivy 0.23

This commit is contained in:
Stefan Reimer 2022-02-14 13:31:25 +01:00
parent 311b342b21
commit 6961b9517a

View File

@ -52,7 +52,7 @@
} }
a.toggle-more-links { cursor: pointer; } a.toggle-more-links { cursor: pointer; }
</style> </style>
<title>{{- escapeXML ( index . 0 ).Target }} - Trivy Report - {{ getCurrentTime }}</title> <title>{{- escapeXML ( index . 0 ).Target }} - Trivy Report - {{ now }}</title>
<script> <script>
window.onload = function() { window.onload = function() {
document.querySelectorAll('td.links').forEach(function(linkCell) { document.querySelectorAll('td.links').forEach(function(linkCell) {
@ -83,7 +83,7 @@
</head> </head>
<body> <body>
<h1><img src="https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png" style="padding-right:10px";> <h1><img src="https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png" style="padding-right:10px";>
Trivy Report - {{ getCurrentTime }}</h1> Trivy Report - {{ now }}</h1>
<table> <table>
{{- range . }} {{- range . }}
<tr class="group-header"><th colspan="7">{{ escapeXML .Target }}({{ escapeXML .Type }})</th></tr> <tr class="group-header"><th colspan="7">{{ escapeXML .Target }}({{ escapeXML .Type }})</th></tr>