diff mbox series

[10/12] index.html: add line numbers to CVE link lists

Message ID 20240508153131.94270-11-ninette@thehoodiefirm.com
State New
Headers show
Series M12: Improve the Charts in the Metrics View | expand

Commit Message

Ninette Adhikari May 8, 2024, 3:31 p.m. UTC
From: Alex Feyerke <hello@alexfeyerke.com>

Improves readability.

Signed-off-by: Alex Feyerke <hello@alexfeyerke.com>
---
 patch-status/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/patch-status/index.html b/patch-status/index.html
index 31c5bfe5..a847a456 100644
--- a/patch-status/index.html
+++ b/patch-status/index.html
@@ -412,9 +412,9 @@  SPDX-License-Identifier: MIT
         html += '<details>';
         html += `<summary class="sub">${name} CVEs</summary>`;
         html += "<ul>";
-        for (const cve of cves) {
+        for (const [index, cve] of cves.entries()) {
           html += '<li>'
-          html += `<a href="${cve}" target="_blank">${cve}</a>`
+          html += `${index + 1}: <a href="${cve}" target="_blank">${cve}</a>`
           html += '</li>';
         }
         html += "</ul>";