diff options
Diffstat (limited to 'ui/src/components/props.rs')
| -rw-r--r-- | ui/src/components/props.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/src/components/props.rs b/ui/src/components/props.rs index db59019..7bc30d7 100644 --- a/ui/src/components/props.rs +++ b/ui/src/components/props.rs @@ -36,10 +36,9 @@ markup::define! { VISI_HIDDEN => {p.visibility{@tr(ri.lang, "prop.vis.hidden")}} VISI_VISIBLE | _ => {} } - // TODO - // @if !nku.node.children.is_empty() { - // p { @format!("{} items", nku.node.children.len()) } - // } + @if nku.child_count > 0 { + p { @format!("{} items", nku.child_count) } + } @for (kind, value) in nku.node.get(NO_RATINGS).unwrap_or(EMPTY).entries::<f64>() { @match TypedTag::new(kind) { RTYP_YOUTUBE_LIKES => {p.likes{ @format_count(value as usize) " Likes" }} |