diff --git a/app/controllers/Statistics.scala b/app/controllers/Statistics.scala index f1ad0b4..f9e17fc 100644 --- a/app/controllers/Statistics.scala +++ b/app/controllers/Statistics.scala @@ -319,8 +319,9 @@ class Statistics @Inject()( Future.successful(Ok(views.html.dependencyDetailsInner( depPrefix = depPrefix, dep = selection.result.groupedDependenciesByHashes(depId), - selectorOption = selectorOption) - ).withHeaders("Content-type" -> "text/plain; charset=utf-8")) + selectorOption = selectorOption, + showAffectedProjects = true + )).withHeaders("Content-type" -> "text/plain; charset=utf-8")) } } } diff --git a/app/views/dependencyDetails.scala.html b/app/views/dependencyDetails.scala.html index a562cd5..65c3770 100644 --- a/app/views/dependencyDetails.scala.html +++ b/app/views/dependencyDetails.scala.html @@ -8,7 +8,8 @@ @dependencyDetailsInner( depPrefix = depPrefix, selectorOption = selectorOption, - dep = dep + dep = dep, + showAffectedProjects = true ) } \ No newline at end of file diff --git a/app/views/dependencyDetailsInner.scala.html b/app/views/dependencyDetailsInner.scala.html index 831df9a..9e450cc 100644 --- a/app/views/dependencyDetailsInner.scala.html +++ b/app/views/dependencyDetailsInner.scala.html @@ -1,4 +1,4 @@ -@(depPrefix: String, dep: GroupedDependency, selectorOption: Option[String], showAffectedProjects: Boolean = false, expandVulnerabilities: Boolean = false, vulnerabilitySearch: Boolean = true) +@(depPrefix: String, dep: GroupedDependency, selectorOption: Option[String], showAffectedProjects: Boolean, expandVulnerabilities: Boolean = false, vulnerabilitySearch: Boolean = true) @if(vulnerabilitySearch){ @vulnerableSoftwareSearches(dep) match { diff --git a/app/views/library.scala.html b/app/views/library.scala.html index ae9e55e..9828c62 100644 --- a/app/views/library.scala.html +++ b/app/views/library.scala.html @@ -1,5 +1,5 @@ @(dep: GroupedDependency, selectorOption: Option[String])(implicit req: DefaultRequest, messages: Messages, mainTemplateData: MainTemplateData) @main("Library details"){ @libraryIdentificationList(dep, None, addLink = false, addButtons = false) - @dependencyDetailsInner(depPrefix = "library-single-", dep = dep, selectorOption = selectorOption) + @dependencyDetailsInner(depPrefix = "library-single-", dep = dep, selectorOption = selectorOption, showAffectedProjects = true) } \ No newline at end of file