Show counts for lists

This commit is contained in:
Simon Bruder 2024-07-18 23:51:18 +02:00
parent 4f169bc8fd
commit 8aff438f98
Signed by: simon
GPG key ID: 347FF8699CDA0776
2 changed files with 3 additions and 3 deletions

View file

@ -147,7 +147,7 @@ async fn show(
@if !children.is_empty() {
div .d-flex.justify-content-between.mt-4 {
div {
h3 { "Direct Children" }
h3 { "Direct Children (" (children.len()) ")" }
}
div {
(PageActionGroup::generate_labels(

View file

@ -125,7 +125,7 @@ async fn show(
}
@if !children.is_empty() {
h3 .mt-4 { "Children" }
h3 .mt-4 { "Children (" (children.len()) ")" }
ul {
@for child in children {
@ -139,7 +139,7 @@ async fn show(
@if !items.is_empty() {
div .d-flex.justify-content-between.mt-4 {
div {
h3 { "Items" }
h3 { "Items (" (items.len()) ")" }
}
div {
(PageActionGroup::generate_labels(