Add generating labels for direct children of item

This commit is contained in:
Simon Bruder 2024-07-17 16:17:31 +02:00
parent cfaaa01fbf
commit 4f169bc8fd
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -145,7 +145,16 @@ async fn show(
}
@if !children.is_empty() {
h3 .mt-4 { "Direct Children" }
div .d-flex.justify-content-between.mt-4 {
div {
h3 { "Direct Children" }
}
div {
(PageActionGroup::generate_labels(
&children.iter().collect::<Vec<&Item>>(),
))
}
}
ul {
@for child in children {