solidstats 0.0.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
- <div class="vulnerabilities-details-section hidden">
1
+ <% # results should be passed as a local variable %>
2
+ <div class="vulnerabilities-details-section">
2
3
  <h3>
3
4
  <span>Vulnerability Details</span>
4
- <button class="toggle-details-btn" aria-expanded="false">Show Details</button>
5
+ <button class="toggle-details-btn" aria-expanded="true">Hide Details</button>
5
6
  </h3>
6
7
  <%# TODO: Render Markdown in .erb using Redcarpet with sanitize for safe HTML output %>
7
8
  <div class="md-container">
@@ -9,7 +10,7 @@
9
10
  <%
10
11
  gem = result.dig("gem") || {}
11
12
  advisory = result.dig("advisory") || {}
12
- criticality = advisory["criticality"] || "Unknown"
13
+ criticality = advisory["criticality"] || "unknown"
13
14
  is_high = %w[high critical].include?(criticality.to_s.downcase)
14
15
  %>
15
16
  <% if advisory["description"].present? %>