Skip to content

Commit 411ae70

Browse files
authored
Merge branch 'main' into fix-alpine-purl
2 parents 3cb9d3f + 47063de commit 411ae70

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

vulnerabilities/templates/index.html

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,33 @@
66
{% endblock %}
77

88
{% 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 %}

vulnerabilities/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99
import logging
10-
from datetime import datetime
1110

1211
from cvss.exceptions import CVSS2MalformedError
1312
from cvss.exceptions import CVSS3MalformedError
@@ -34,6 +33,7 @@
3433
from vulnerabilities.severity_systems import EPSS
3534
from vulnerabilities.severity_systems import SCORING_SYSTEMS
3635
from vulnerabilities.utils import get_severity_range
36+
from vulnerablecode import __version__ as VULNERABLECODE_VERSION
3737
from vulnerablecode.settings import env
3838

3939
PAGE_SIZE = 20
@@ -256,6 +256,7 @@ def get(self, request):
256256
context = {
257257
"vulnerability_search_form": VulnerabilitySearchForm(request_query),
258258
"package_search_form": PackageSearchForm(request_query),
259+
"release_url": f"https://github.com/aboutcode-org/vulnerablecode/releases/tag/v{VULNERABLECODE_VERSION}",
259260
}
260261
return render(request=request, template_name=self.template_name, context=context)
261262

0 commit comments

Comments
 (0)