diff --git a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl index e71e67b12..195ef750e 100644 --- a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl +++ b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl @@ -16,7 +16,7 @@ limitations under the License. Copyright (c) 2012 Jeremy Long. All Rights Reserved. @author Jeremy Long -@version 1 +@version 1.1 *# @@ -52,17 +52,17 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. }); $(function(){ - $("#modal-background, #modal-close").click(function () { - $("#modal-content,#modal-background").toggleClass("active"); + $('#modal-background, #modal-close').click(function () { + $('#modal-content,#modal-background').toggleClass('active'); }); - $("#modal-text").bind('copy cut', function() { + $('#modal-text').bind('copy cut', function() { setTimeout('$("#modal-content,#modal-background").toggleClass("active");',100); }); - $("#modal-add-header").click(function () { + $('#modal-add-header').click(function () { xml = '\n\n '; xml += $("#modal-text").text().replace(/\n/g,'\n '); xml += '\n'; - $("#modal-text").text(xml).focus().select(); + $('#modal-text').text(xml).focus().select(); }); }); @@ -72,14 +72,28 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. xml += ' ' + sha1 + '\n'; xml += ' <'+type+'>' + val + '\n'; xml += ''; - $("#modal-text").text(xml); - $("#modal-content,#modal-background").toggleClass("active"); - $("#modal-text").focus(); - $("#modal-text").select(); + $('#modal-text').text(xml); + $('#modal-content,#modal-background').toggleClass('active'); + $('#modal-text').focus(); + $('#modal-text').select(); } - function toggleVuln() { - $(".notvulnerable").toggle(); + function toggleVuln(el) { + $('.notvulnerable').toggle(); + if (el.innerHTML == 'show all') { + el.innerHTML = 'hide'; + } else { + el.innerHTML = 'show all'; + } + } + function toggleMore(el) { + $('.hiddenInfo').toggle(); + $('.nothidden').toggle(); + if (el.innerHTML == 'more') { + el.innerHTML = 'less'; + } else { + el.innerHTML = 'more'; + } } @@ -420,6 +443,14 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. ]]#

Project: $esc.html($applicationName)

Report Generated On: $date

+ Scan Information (more):
+
#set($depCount=$dependencies.size()) #set($vulnCount=0) @@ -429,7 +460,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. #set($vulnCount=$vulnCount+1) #end #end - Dependencies Scanned: $depCount (show all)
+ Dependencies Scanned: $depCount (show all)
Vulnerable Dependencies: $vulnCount