Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat(src.pages.rs: both run ids in repo list for latest run
Lars Wirzenius committed 1 year ago
commit 2317a19fd0d1cd89add95ac7de240485d7413c3f
parent eeb79ef0903045ee027ced7aaece0ac59399841a
1 file changed +17 -0
modified src/pages.rs
@@ -197,8 +197,25 @@ impl PageData {
                item.push_child(Element::new(Tag::Br));
                item.push_child(
                    Element::new(Tag::Span)
+
                        .with_text("latest run at ")
                        .with_text(run.timestamp())
                        .with_child(Element::new(Tag::Br))
+
                        .with_text("broker run ID: ")
+
                        .with_child(
+
                            Element::new(Tag::Code)
+
                                .with_class("broker_run_id")
+
                                .with_text(run.broker_run_id().as_str()),
+
                        )
+
                        .with_child(Element::new(Tag::Br))
+
                        .with_text("adapter run ID: ")
+
                        .with_child(if let Some(id) = run.adapter_run_id() {
+
                            Element::new(Tag::Code)
+
                                .with_class("adapter_run_id")
+
                                .with_text(id.as_str())
+
                        } else {
+
                            Element::new(Tag::Span).with_text("unknown")
+
                        })
+
                        .with_child(Element::new(Tag::Br))
                        .with_text(" ")
                        .with_child(Self::whence_as_html(run.whence())),
                );