Skip to content

Commit

Permalink
chg: [website] Improved /recent view for GitHub vulnerabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Oct 17, 2024
1 parent f5d8b21 commit e60b81a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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', 'pysec'] %}
{% elif source in ['jvndb', 'ossf_malicious_packages', 'pysec', 'github'] %}
<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 @@ -116,14 +116,16 @@ <h1>Recent vulnerabilities</h1>
<a href="{{url_for('home_bp.vulnerability_view', vulnerability_id=vuln_id)}}">{{vuln_id}}</a>
(<a href="https://github.com/advisories/{{vuln_id}}">github</a>)
</th>
<td>{{ vuln['details'] }}</td>
<td>{% if 'summary' in vuln %}{{ vuln['summary'] }}{% else %}{{ vuln['details'] | truncate(100, True, end='...') }}{% endif %}</td>
<td class="datetime" title="{{ vuln['published'] }}">{{ vuln['published'] }}</td>
<td class="datetime" title="{{ vuln['modified'] }}">{{ vuln['modified'] }}</td>
</tr>
{% elif source == "pysec" %}
<tr>
<th scope="row">
<a href="{{url_for('home_bp.vulnerability_view', vulnerability_id=vuln_id)}}">{{vuln_id}}</a>
</th>
<td>{{ vuln['details'] | truncate(120, True, end='...') }}</td>
<td>{{ vuln['details'] | truncate(100, True, end='...') }}</td>
<td class="datetime" title="{{ vuln['published'] }}">{{ vuln['published'] }}</td>
<td class="datetime" title="{{ vuln['modified'] }}">{{ vuln['modified'] }}</td>
</tr>
Expand Down

0 comments on commit e60b81a

Please sign in to comment.