From d93c7b9c77c8aacb4c9c5f215ab6cc818f31bfd4 Mon Sep 17 00:00:00 2001
From: Martin Lowe <martin.lowe@eclipse-foundation.org>
Date: Fri, 4 Dec 2020 16:21:39 -0500
Subject: [PATCH] Add button with project ID to heading of project sections

Signed-off-by: Martin Lowe <martin.lowe@eclipse-foundation.org>
---
 js/eclipsefdn.adopters.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/js/eclipsefdn.adopters.js b/js/eclipsefdn.adopters.js
index 95544d6..05c257e 100644
--- a/js/eclipsefdn.adopters.js
+++ b/js/eclipsefdn.adopters.js
@@ -141,6 +141,12 @@
       for (var i = 0; i < el.length; i++) {
         el[i].append(h2);
       }
+      const headerAnchor = document.createElement('a');
+      headerAnchor.setAttribute('class', 'btn btn-xs btn-secondary margin-left-10');
+      headerAnchor.setAttribute('href', 'https://projects.eclipse.org/projects/' + project.project_id);
+      headerAnchor.textContent = project.project_id;
+      h2.appendChild(headerAnchor);
+
       createProjectList(json_object, projectOpts, el);
     }
   }
-- 
GitLab