Skip to content

Commit

Permalink
Add EPSS percentage and percentile sorting options to advisories
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Dec 3, 2024
1 parent dada25d commit 577a041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/advisories/_sort.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Sort
</button>
<ul class="dropdown-menu">
<% [['severity', 'desc', 'Highest Severity'],['severity', 'asc', 'Lowest Severity'],['blast_radius', 'desc', 'Blast Radius'],['published_at', 'desc', 'Recently Published'],['cvss_score','desc','CVSS Score']].each do |sort, order, name| %>
<% [['severity', 'desc', 'Highest Severity'],['severity', 'asc', 'Lowest Severity'],['blast_radius', 'desc', 'Blast Radius'],['published_at', 'desc', 'Recently Published'],['cvss_score','desc','CVSS Score'], ['epss_percentage', 'desc', 'EPSS Percentage'], ['epss_percentile', 'desc', 'EPSS Percentile']].each do |sort, order, name| %>
<li><a class="dropdown-item <%= 'active' if params[:sort] == sort %>" href="<%= url_for(request.params.merge(sort: sort, order: order)) %>"><%= name %></a></li>
<% end %>
</ul>
Expand Down

0 comments on commit 577a041

Please sign in to comment.