From 356bc5fe6913e85b18a2cb355f30019cdfd6b146 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 21 Feb 2026 03:46:30 +0100 Subject: Also use source ranks for nested attributes --- ui/src/components/node_page.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ui/src/components') diff --git a/ui/src/components/node_page.rs b/ui/src/components/node_page.rs index 9be20f2..7deaf61 100644 --- a/ui/src/components/node_page.rs +++ b/ui/src/components/node_page.rs @@ -143,8 +143,15 @@ markup::define! { tr { th {"Attribute"} th {"Source"} } @for (key, source) in node.get(NO_METASOURCE).unwrap_or_default().entries::() { tr { td { @tr(ri.lang, &format!("tag.{key}")) } - td { @tr(ri.lang, &format!("tag.msrc.{source}")) } + td { @tr(ri.lang, &format!("tag.msrc.{source}")) } }} + @for nkey in [NO_PICTURES, NO_IDENTIFIERS, NO_RATINGS] { + @let nob = node.get(nkey).unwrap_or_default(); + @for (key, source) in nob.get(NO_METASOURCE).unwrap_or_default().entries::() { tr { + td { @tr(ri.lang, &format!("tag.{nkey}")) ": " @tr(ri.lang, &format!("tag.{nkey}.{key}")) } + td { @tr(ri.lang, &format!("tag.msrc.{source}")) } + }} + } } } } -- cgit v1.3