diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 360bd20..16740e9 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -75,15 +75,24 @@ h3.library-identification{ color: white; font-weight: bold; } +.dependencies-table .identifiers ul, .dependencies-table .identifiers ul li{ + margin-left: 0; + padding-left: 0; + list-style-type: none; +} .severity{ font-size: smaller; margin-bottom: 5px; + width: 10px; } .severity .score{ font-weight: bolder; } +.severity .computation-details{ + display: block; +} .explained{ border-bottom: 1px dashed black; @@ -101,7 +110,7 @@ h3.library-identification{ height: 1.5em; width: 1.5em; margin-left: 0.5em; - font-size: 50%; + font-size: 70%; } .explained:hover{ border-bottom-color: blue; @@ -155,4 +164,36 @@ h3.library-identification{ } .nav > li.collapse.in { display: list-item; +} + +.dependencies-table .vulns{ + text-align: right; +} +.dependencies-table .actions{ + vertical-align: bottom; + width: 10px; +} +.dependencies-table > tbody > tr:nth-of-type(4n+1), .dependencies-table > tbody > tr:nth-of-type(4n+2) { + background-color: #f9f9f9; +} +.dependencies-table > tbody > tr.details > td { + border-top-style: none; +} +.dependencies-table .severity .explained:hover { + color:blue; +} +.dependencies-table .severity .explained:after { + content: ""; + display: none; +} +.dependencies-table .severity .tooltip-inner { + white-space:nowrap; + max-width:none; +} +.dependencies-table .identifiers .tooltip-inner { + max-width: 350px; + width: 350px; +} +.dependencies-table .identifiers .explained{ + border-bottom: none; } \ No newline at end of file diff --git a/app/assets/js/main.js b/app/assets/js/main.js index 44f00d4..78e49b0 100644 --- a/app/assets/js/main.js +++ b/app/assets/js/main.js @@ -64,19 +64,24 @@ function updatePosition(){ } function lazyLoad(el){ var $el = $(el); + var wrapExpr = $el.attr('data-wrapper'); + var targetEl = wrapExpr ? $(wrapExpr) : $el; var url = $el.attr("data-lazyload-url"); function setUrl(newUrl){ - $el.attr("data-lazyload-url", newUrl); + $el.attr("data-lazyload-url", newUrl); } if(url){ - $el.html($('
+ Look for vulnerabilities in other versions +
+ } +} + @if(dep.descriptions.size > 1){| Severity | +Identifiers | +Vulns | ++ |
|---|---|---|---|
| + @for(s <- dep.maxCvssScore) { + @dep.ysdssScore.map("%.2f".format(_)) + + = @s × @dep.projects.size + + } + | ++ @libraryIdentificationList(dep, Some(cpe => s"$idPrefix-${dep.sha1}-suppression-cpe-${cpeHtmlId(cpe)}"), addLink = false, addButtons = addButtons) + | +@for(s <- dep.maxCvssScore) {@dep.vulnerabilities.size} | ++ + | +