File tree Expand file tree Collapse file tree 2 files changed +32
-6
lines changed Expand file tree Collapse file tree 2 files changed +32
-6
lines changed Original file line number Diff line number Diff line change 6
6
{% endblock %}
7
7
8
8
{% block content %}
9
- < section class ="section pt-0 ">
10
- {% include "package_search_box.html" %}
11
- {% include "vulnerability_search_box.html" %}
12
- </ section >
13
- {% endblock %}
9
+ < section class ="section pt-2 ">
10
+ < div class ="container ">
11
+ < div class ="columns is-centered mb-5 mt-2 ">
12
+ < div class ="column is-full-tablet is-full-desktop ">
13
+ {% include "vulnerability_search_box.html" %}
14
+ </ div >
15
+ </ div >
16
+ < div class ="columns is-centered mb-5 ">
17
+ < div class ="column is-full-tablet is-full-desktop ">
18
+ {% include "package_search_box.html" %}
19
+ </ div >
20
+ </ div >
21
+ < div class ="notification is-info is-light has-text-centered ">
22
+ < p class ="is-size-6 has-text-grey-dark has-text-centered mb-3 ">
23
+ < strong > VulnerableCode</ strong > aggregates software
24
+ vulnerabilities from multiple public advisory sources
25
+ and presents their details along with their affected
26
+ packages and fixed-by packages identified by
27
+ Package URLs (PURLs).
28
+ </ p >
29
+ < p class ="is-size-5 ">
30
+ < strong > What's new in this Release:</ strong >
31
+ < a href ="{{ release_url }} " target ="_blank " class ="has-text-link is-underlined ">
32
+ Check out latest updates here!
33
+ </ a >
34
+ </ p >
35
+ </ div >
36
+ </ div >
37
+ </ section >
38
+ {% endblock %}
Original file line number Diff line number Diff line change 7
7
# See https://aboutcode.org for more information about nexB OSS projects.
8
8
#
9
9
import logging
10
- from datetime import datetime
11
10
12
11
from cvss .exceptions import CVSS2MalformedError
13
12
from cvss .exceptions import CVSS3MalformedError
34
33
from vulnerabilities .severity_systems import EPSS
35
34
from vulnerabilities .severity_systems import SCORING_SYSTEMS
36
35
from vulnerabilities .utils import get_severity_range
36
+ from vulnerablecode import __version__ as VULNERABLECODE_VERSION
37
37
from vulnerablecode .settings import env
38
38
39
39
PAGE_SIZE = 20
@@ -256,6 +256,7 @@ def get(self, request):
256
256
context = {
257
257
"vulnerability_search_form" : VulnerabilitySearchForm (request_query ),
258
258
"package_search_form" : PackageSearchForm (request_query ),
259
+ "release_url" : f"https://github.com/aboutcode-org/vulnerablecode/releases/tag/v{ VULNERABLECODE_VERSION } " ,
259
260
}
260
261
return render (request = request , template_name = self .template_name , context = context )
261
262
You can’t perform that action at this time.
0 commit comments