mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-10-18 19:10:37 +08:00
fix: changes forced by new html-page version
This commit is contained in:
+15
-15
@@ -143,14 +143,14 @@ impl RunLog {
|
||||
.with_child(
|
||||
Element::new(Tag::Li)
|
||||
.with_text("Repository id: ")
|
||||
.with_child(Element::new(Tag::Code).with_text(&rid.to_string()))
|
||||
.with_child(Element::new(Tag::Code).with_text(rid.to_string()))
|
||||
.with_text(" ")
|
||||
.with_text(repo_name),
|
||||
)
|
||||
.with_child(
|
||||
Element::new(Tag::Li)
|
||||
.with_text("Commit: ")
|
||||
.with_child(Element::new(Tag::Code).with_text(&commit.to_string())),
|
||||
.with_child(Element::new(Tag::Code).with_text(commit.to_string())),
|
||||
)
|
||||
.with_child(if let Some(branch) = &self.branch {
|
||||
Element::new(Tag::Li)
|
||||
@@ -159,7 +159,7 @@ impl RunLog {
|
||||
} else if let Some((patch, title)) = &self.patch {
|
||||
Element::new(Tag::Li)
|
||||
.with_text("Patch: ")
|
||||
.with_child(Element::new(Tag::Code).with_text(&patch.to_string()))
|
||||
.with_child(Element::new(Tag::Code).with_text(patch.to_string()))
|
||||
.with_text(" ")
|
||||
.with_text(title)
|
||||
} else {
|
||||
@@ -167,7 +167,7 @@ impl RunLog {
|
||||
})
|
||||
.with_child({
|
||||
let ts = if let Some(ts) = &self.started {
|
||||
Element::new(Tag::Span).with_text(×tamp(ts))
|
||||
Element::new(Tag::Span).with_text(timestamp(ts))
|
||||
} else {
|
||||
Element::new(Tag::Span)
|
||||
};
|
||||
@@ -175,7 +175,7 @@ impl RunLog {
|
||||
})
|
||||
.with_child({
|
||||
let dur = if let Some(dur) = &self.duration {
|
||||
Element::new(Tag::Span).with_text(&format!("{:1}", dur.as_secs_f64()))
|
||||
Element::new(Tag::Span).with_text(format!("{:1}", dur.as_secs_f64()))
|
||||
} else {
|
||||
Element::new(Tag::Span)
|
||||
};
|
||||
@@ -265,7 +265,7 @@ impl Command {
|
||||
toc.push(
|
||||
Element::new(Tag::Span)
|
||||
.with_text("Run: ")
|
||||
.with_child(Element::new(Tag::Code).with_text(&self.command())),
|
||||
.with_child(Element::new(Tag::Code).with_text(self.command())),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -273,14 +273,14 @@ impl Command {
|
||||
Element::new(Tag::Ul)
|
||||
.with_child(
|
||||
Element::new(Tag::Li)
|
||||
.with_text(&format!("Started: {}", timestamp(&self.started))),
|
||||
.with_text(format!("Started: {}", timestamp(&self.started))),
|
||||
)
|
||||
.with_child(
|
||||
Element::new(Tag::Li).with_text(&format!("Ended: {}", timestamp(&self.ended))),
|
||||
Element::new(Tag::Li).with_text(format!("Ended: {}", timestamp(&self.ended))),
|
||||
)
|
||||
.with_child(
|
||||
Element::new(Tag::Li)
|
||||
.with_text(&format!("Duration: {} s", self.duration.as_secs())),
|
||||
.with_text(format!("Duration: {} s", self.duration.as_secs())),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -289,7 +289,7 @@ impl Command {
|
||||
for arg in self.argv.iter() {
|
||||
ul.push_child(
|
||||
Element::new(Tag::Li)
|
||||
.with_child(Element::new(Tag::Code).with_text(&format!("{arg:?}"))),
|
||||
.with_child(Element::new(Tag::Code).with_text(format!("{arg:?}"))),
|
||||
);
|
||||
}
|
||||
body.push_child(ul);
|
||||
@@ -297,10 +297,10 @@ impl Command {
|
||||
body.push_child(
|
||||
Element::new(Tag::P)
|
||||
.with_text("In directory: ")
|
||||
.with_child(Element::new(Tag::Code).with_text(&format!("{}", self.cwd.display()))),
|
||||
.with_child(Element::new(Tag::Code).with_text(format!("{}", self.cwd.display()))),
|
||||
);
|
||||
|
||||
body.push_child(Element::new(Tag::P).with_text(&format!("Exit code: {}", self.exit)));
|
||||
body.push_child(Element::new(Tag::P).with_text(format!("Exit code: {}", self.exit)));
|
||||
|
||||
self.output(body, "Output (stdout and stderr):", &self.stdout);
|
||||
}
|
||||
@@ -310,7 +310,7 @@ impl Command {
|
||||
body.push_child(Element::new(Tag::P).with_text(stream));
|
||||
body.push_child(
|
||||
Element::new(Tag::Blockquote)
|
||||
.with_child(Element::new(Tag::Pre).with_text(&String::from_utf8_lossy(data))),
|
||||
.with_child(Element::new(Tag::Pre).with_text(&*String::from_utf8_lossy(data))),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -333,7 +333,7 @@ impl ToC {
|
||||
let anchor = format!("h{}", self.counter);
|
||||
self.headings.push((anchor.clone(), content.clone()));
|
||||
Element::new(Tag::H2)
|
||||
.with_attribute("id", &format!("h{}", self.counter))
|
||||
.with_attribute("id", format!("h{}", self.counter))
|
||||
.with_child(content)
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ impl ToC {
|
||||
for (anchor, content) in self.headings.iter() {
|
||||
let entry = Element::new(Tag::Li).with_child(
|
||||
Element::new(Tag::A)
|
||||
.with_attribute("href", &format!("#{anchor}"))
|
||||
.with_attribute("href", format!("#{anchor}"))
|
||||
.with_child(content.clone()),
|
||||
);
|
||||
list.push_child(entry);
|
||||
|
||||
Reference in New Issue
Block a user