mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-10-18 19:30:29 +08:00
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:
+14
-10
@@ -121,17 +121,21 @@ impl PageData {
|
||||
}
|
||||
|
||||
fn broker_status(&self, doc: &mut ReportPage) {
|
||||
doc.h2("Broker status");
|
||||
doc.push(
|
||||
Element::new(Tag::P)
|
||||
.with_text("Last updated: ")
|
||||
.with_text(&self.timestamp)
|
||||
.with_child(Element::new(Tag::Br))
|
||||
.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(")"),
|
||||
Element::new(Tag::Ul)
|
||||
.with_child(
|
||||
Element::new(Tag::Li)
|
||||
.with_text("This page last updated: ")
|
||||
.with_text(&self.timestamp),
|
||||
)
|
||||
.with_child(
|
||||
Element::new(Tag::Li)
|
||||
.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(")"),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user