| |
fn status_page_as_html(&self) -> Result<HtmlPage, PageError> {
|
| |
let mut doc = HtmlPage::default();
|
| |
|
| - |
Self::head(
|
| - |
&mut doc,
|
| - |
&format!("CI for Radicle node {}", self.node_alias),
|
| - |
);
|
| + |
let title = format!("CI for Radicle node {}", self.node_alias);
|
| + |
Self::head(&mut doc, &title);
|
| |
|
| - |
doc.push_to_body(
|
| - |
Element::new(Tag::H1)
|
| - |
.with_text("CI for Radicle node ")
|
| - |
.with_text(&self.node_alias),
|
| - |
);
|
| + |
doc.push_to_body(Element::new(Tag::H1).with_text(&title));
|
| |
|
| |
doc.push_to_body(Element::new(Tag::H2).with_text("Broker status"));
|
| |
doc.push_to_body(
|