Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: add run count for each repo on front page
Lars Wirzenius committed 2 years ago
commit c0c48fd3c09fc0b54b0482afb296f0255003ee2d
parent 88e4af565a196e7e4512ed71e85013312ec267ff
1 file changed +2 -1
modified 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())),
                ),
            );