[Git][qa/jenkins.debian.net][master] r.d.n: add /stats links to frontpage

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Feb 20 14:39:14 GMT 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
02c8c4ee by Holger Levsen at 2025-02-20T15:39:07+01:00
r.d.n: add /stats links to frontpage

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- TODO.r.d.n
- hosts/osuosl5-amd64/var/www/html/index.html


Changes:

=====================================
TODO.r.d.n
=====================================
@@ -1,5 +1,5 @@
 https://r.d.n/ improvements
-	improve layout. link to /stats too
+	improve layout
 	then add column: "(thanks to) workers hosted by/as" (maybe 2 columns?: hostnames & hoster)
 	add rb & debian logos
 do TODO.rebuilderd-systemd-units


=====================================
hosts/osuosl5-amd64/var/www/html/index.html
=====================================
@@ -53,7 +53,7 @@
         <script>
         document.addEventListener('DOMContentLoaded', function() {
             // display stats
-            function updateStats(element, arch, data) {
+            function updateStats(element, pad, arch, data) {
                 let div = document.getElementById(element+'-'+arch);
                 // clear children
                 div.innerHTML = '';
@@ -61,7 +61,7 @@
                 data.map(row => {
                     let r = document.createElement('pre');
                     let key = row[0] + ': ';
-                    r.textContent = key.padEnd(20) + row[1];
+                    r.textContent = key.padEnd(pad) + row[1];
                     div.appendChild(r);
                 });
             }
@@ -84,12 +84,12 @@
                         let bad = main['bad'];
                         let unknown = main['unknown'];
 
-                        updateStats('stats', arch, [
+                        updateStats('stats', 7, arch, [
                             ['repro', (100 / (good + bad) * good).toFixed(2) + '%'],
                             ['good', good],
                             ['bad', bad],
                         ])
-                        updateStats('progress', arch, [
+                        updateStats('progress', 14, arch, [
                             ['build progress', (100 / (good + unknown + bad) * (good + bad)).toFixed(2) + '%'],
                         ]);
                     });
@@ -130,7 +130,7 @@
 	</td><td>
 		<div id="stats-all">Loading stats...</div>
 	</td><td>
-	     
+		<a href="https://reproduce.debian.net/all/stats/">stats of BAD packages</a>
 	</td><td>
 		<div id="progress-all">Loading progress...</div>
 	</td></tr><tr><td>
@@ -144,7 +144,7 @@
 	</td><td>
 		<div id="stats-amd64">Loading stats...</div>
 	</td><td>
-	     
+		<a href="https://reproduce.debian.net/amd64/stats/">stats of BAD packages</a>
 	</td><td>
 		<div id="progress-amd64">Loading progress...</div>
 	</td></tr><tr><td>
@@ -158,7 +158,7 @@
 	</td><td>
 		<div id="stats-arm64">Loading stats...</div>
 	</td><td>
-	     
+		<a href="https://reproduce.debian.net/arm64/stats/">stats of BAD packages</a>
 	</td><td>
 		<div id="progress-arm64">Loading progress...</div>
 	</td></tr><tr><td>
@@ -172,7 +172,7 @@
 	</td><td>
 		<div id="stats-armhf">Loading stats...</div>
 	</td><td>
-	     
+		<a href="https://reproduce.debian.net/armhf/stats/">stats of BAD packages</a>
 	</td><td>
 		<div id="progress-armhf">Loading progress...</div>
 	</td></tr><tr><td>
@@ -186,7 +186,7 @@
 	</td><td>
 		<div id="stats-i386">Loading stats...</div>
 	</td><td>
-	     
+		<a href="https://reproduce.debian.net/i386/stats/">stats of BAD packages</a>
 	</td><td>
 		<div id="progress-i386">Loading progress...</div>
 	</td></tr><tr><td>
@@ -200,7 +200,7 @@
 	</td><td>
 		<div id="stats-riscv64">Loading stats...</div>
 	</td><td>
-	     
+		<a href="https://reproduce.debian.net/riscv64/stats/">stats of BAD packages</a>
 	</td><td>
 		<div id="progress-riscv64">Loading progress...</div>
 	</td></tr>



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/02c8c4ee58b8ba36ea48b366cbdb8b2b8ddd8479

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/02c8c4ee58b8ba36ea48b366cbdb8b2b8ddd8479
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250220/3387f1d8/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list