Skip to content

Commit

Permalink
chg: [website] Improved /recent view for PySec vulnerabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Oct 17, 2024
1 parent 1a2728d commit f5d8b21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/web/templates/recent.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1>Recent vulnerabilities</h1>
<th scope="col">Description</th>
<th scope="col" class="col-md-1">Publish Date</th>
<th scope="col" class="col-md-1">Update Date</th>
{% elif source in ['jvndb', 'ossf_malicious_packages'] %}
{% elif source in ['jvndb', 'ossf_malicious_packages', 'pysec'] %}
<th scope="col" class="col-md-1">ID</th>
<th scope="col">Description</th>
<th scope="col" class="col-md-1">Publish Date</th>
Expand Down Expand Up @@ -123,7 +123,9 @@ <h1>Recent vulnerabilities</h1>
<th scope="row">
<a href="{{url_for('home_bp.vulnerability_view', vulnerability_id=vuln_id)}}">{{vuln_id}}</a>
</th>
<td>{{vuln['details']}}</td>
<td>{{ vuln['details'] | truncate(120, True, end='...') }}</td>
<td class="datetime" title="{{ vuln['published'] }}">{{ vuln['published'] }}</td>
<td class="datetime" title="{{ vuln['modified'] }}">{{ vuln['modified'] }}</td>
</tr>
{% elif source == "ossf_malicious_packages" %}
<tr>
Expand Down

0 comments on commit f5d8b21

Please sign in to comment.