mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-19 07:44:44 +01:00
Lazy-load of dependency details
This commit is contained in:
16
app/views/dependencyDetails.scala.html
Normal file
16
app/views/dependencyDetails.scala.html
Normal file
@@ -0,0 +1,16 @@
|
||||
@(depPrefix: String, expandByDefault: Boolean, dep: GroupedDependency, selectorOption: Option[String])
|
||||
<div id="@depPrefix-details" class="collapse @if(expandByDefault){ in }" data-lazyload-url="@routes.Statistics.dependencyDetails(
|
||||
depPrefix = depPrefix,
|
||||
depId = dep.hashes,
|
||||
selectorOption = selectorOption
|
||||
)">
|
||||
@if(expandByDefault){
|
||||
@dependencyDetailsInner(
|
||||
depPrefix = depPrefix,
|
||||
selectorOption = selectorOption,
|
||||
dep = dep
|
||||
)
|
||||
}else{
|
||||
placeholder
|
||||
}
|
||||
</div>
|
||||
Reference in New Issue
Block a user