[Git][qa/jenkins.debian.net][master] r.d.n: slightly improve frontpage layout
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Feb 20 14:29:09 GMT 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
966a2860 by Holger Levsen at 2025-02-20T15:29:01+01:00
r.d.n: slightly improve frontpage layout
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
+ improve layout. link to /stats too
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,8 +53,8 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
// display stats
- function updateStats(arch, data) {
- let div = document.getElementById('stats-'+arch);
+ function updateStats(element, arch, data) {
+ let div = document.getElementById(element+'-'+arch);
// clear children
div.innerHTML = '';
// add rows
@@ -79,17 +79,17 @@
fetch('https://reproduce.debian.net/'+arch+'/api/v0/dashboard')
.then(response => response.json())
.then(data => {
- let div = document.getElementById('stats-'+arch);
let main = data['suites']['main'];
-
let good = main['good'];
let bad = main['bad'];
let unknown = main['unknown'];
- updateStats(arch, [
+ updateStats('stats', arch, [
['repro', (100 / (good + bad) * good).toFixed(2) + '%'],
['good', good],
['bad', bad],
+ ])
+ updateStats('progress', arch, [
['build progress', (100 / (good + unknown + bad) * (good + bad)).toFixed(2) + '%'],
]);
});
@@ -129,6 +129,10 @@
</a>
</td><td>
<div id="stats-all">Loading stats...</div>
+ </td><td>
+
+ </td><td>
+ <div id="progress-all">Loading progress...</div>
</td></tr><tr><td>
<a href="https://reproduce.debian.net/amd64/">r.d.n/amd64</a>
</td><td>
@@ -139,6 +143,10 @@
</a>
</td><td>
<div id="stats-amd64">Loading stats...</div>
+ </td><td>
+
+ </td><td>
+ <div id="progress-amd64">Loading progress...</div>
</td></tr><tr><td>
<a href="https://reproduce.debian.net/arm64/">r.d.n/arm64</a>
</td><td>
@@ -149,6 +157,10 @@
</a>
</td><td>
<div id="stats-arm64">Loading stats...</div>
+ </td><td>
+
+ </td><td>
+ <div id="progress-arm64">Loading progress...</div>
</td></tr><tr><td>
<a href="https://reproduce.debian.net/armhf/">r.d.n/armhf</a>
</td><td>
@@ -159,6 +171,10 @@
</a>
</td><td>
<div id="stats-armhf">Loading stats...</div>
+ </td><td>
+
+ </td><td>
+ <div id="progress-armhf">Loading progress...</div>
</td></tr><tr><td>
<a href="https://reproduce.debian.net/i386/">r.d.n/i386</a>
</td><td>
@@ -169,6 +185,10 @@
</a>
</td><td>
<div id="stats-i386">Loading stats...</div>
+ </td><td>
+
+ </td><td>
+ <div id="progress-i386">Loading progress...</div>
</td></tr><tr><td>
<a href="https://reproduce.debian.net/riscv64/">r.d.n/riscv64</a>
</td><td>
@@ -179,6 +199,10 @@
</a>
</td><td>
<div id="stats-riscv64">Loading stats...</div>
+ </td><td>
+
+ </td><td>
+ <div id="progress-riscv64">Loading progress...</div>
</td></tr>
</table>
<br/>
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/966a2860ac7fbd2fcac01148e3f7fe7c193808fc
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/966a2860ac7fbd2fcac01148e3f7fe7c193808fc
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/b7c9b623/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list