summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-03-15 16:38:39 +0200
committerLars Wirzenius <liw@liw.fi>2024-03-15 16:42:18 +0200
commitc0c48fd3c09fc0b54b0482afb296f0255003ee2d (patch)
tree108a8e6675f684f5e5ff5fa78cff5b0bcae611fa
parent88e4af565a196e7e4512ed71e85013312ec267ff (diff)
downloadradicle-ci-broker-c0c48fd3c09fc0b54b0482afb296f0255003ee2d.tar.gz
feat: add run count for each repo on front page
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r--src/pages.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages.rs b/src/pages.rs
index c1c1f5a..eaa4baf 100644
--- a/src/pages.rs
+++ b/src/pages.rs
@@ -145,6 +145,7 @@ impl PageData {
for (alias, rid) in self.repos() {
let mut item = Element::new(Tag::Li);
+ let runs = self.runs(rid);
item.push_child(
&Element::new(Tag::Span).with_child(
Element::new(Tag::A)
@@ -161,7 +162,7 @@ impl PageData {
.with_attribute("class", "repoid")
.with_text(&rid.to_string()),
)
- .with_text(")"),
+ .with_text(&format!("), {} runs", runs.len())),
),
);