feat: make broker status information into a list

This is more visually distinct than a plain paragraph, but less heavy
than a heading.
This commit is contained in:
Lars Wirzenius
2026-08-26 09:16:46 +03:00
parent dccd17b7d8
commit d1da8c5823
+14 -10
View File
@@ -121,17 +121,21 @@ impl PageData {
} }
fn broker_status(&self, doc: &mut ReportPage) { fn broker_status(&self, doc: &mut ReportPage) {
doc.h2("Broker status");
doc.push( doc.push(
Element::new(Tag::P) Element::new(Tag::Ul)
.with_text("Last updated: ") .with_child(
.with_text(&self.timestamp) Element::new(Tag::Li)
.with_child(Element::new(Tag::Br)) .with_text("This page last updated: ")
.with_text("CI broker version: ") .with_text(&self.timestamp),
.with_text(self.ci_broker_version) )
.with_text(" (commit ") .with_child(
.with_child(Element::new(Tag::Code).with_text(self.ci_broker_git_commit)) Element::new(Tag::Li)
.with_text(")"), .with_text("CI broker version: ")
.with_text(self.ci_broker_version)
.with_text(" (commit ")
.with_child(Element::new(Tag::Code).with_text(self.ci_broker_git_commit))
.with_text(")"),
),
); );
} }