mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-25 10:32:28 +01:00
Initial commit
This commit is contained in:
24
app/views/statistics/vulnerabilityNotFound.scala.html
Normal file
24
app/views/statistics/vulnerabilityNotFound.scala.html
Normal file
@@ -0,0 +1,24 @@
|
||||
@(
|
||||
projectsWithSelection: ProjectsWithSelection,
|
||||
name: String
|
||||
)(implicit header: DefaultRequest)
|
||||
|
||||
@main(
|
||||
title = s"Unknown vulnerability $name for ${projectsWithSelection.projectNameText}",
|
||||
projectsOption = Some((projectsWithSelection, p => routes.Statistics.vulnerability(name, p)))
|
||||
){
|
||||
<div class="alert alert-warning">Vulnerability <i>@name</i> is not found@if(projectsWithSelection.isProjectSpecified){ for selected project(s)}.</div>
|
||||
<h2>Possible solutions</h2>
|
||||
<ul class="solutions">
|
||||
@if(projectsWithSelection.isProjectSpecified){
|
||||
<li>
|
||||
Maybe the vulnerability does not affect this project, but it might affect other projects.<br>
|
||||
<a class="btn btn-success" href="@routes.Statistics.vulnerability(name, None)">Look at all the projects!</a>
|
||||
</li>
|
||||
}
|
||||
<li>
|
||||
Maybe the vulnerability does not affect any of the projects.<br>
|
||||
<a href="https://web.nvd.nist.gov/view/vuln/detail?vulnId=@helper.urlEncode(name)" class="btn btn-default">Look at NVD</a>
|
||||
</li>
|
||||
</ul>
|
||||
}
|
||||
Reference in New Issue
Block a user