diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-21 03:46:30 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-21 03:46:30 +0100 |
| commit | 356bc5fe6913e85b18a2cb355f30019cdfd6b146 (patch) | |
| tree | b6d2ea73498c04d740291c8670fff1ec81d1a886 /ui/src | |
| parent | a7e9d52efd1dba23a43f13d0eb9bb2236d1de74c (diff) | |
| download | jellything-356bc5fe6913e85b18a2cb355f30019cdfd6b146.tar jellything-356bc5fe6913e85b18a2cb355f30019cdfd6b146.tar.bz2 jellything-356bc5fe6913e85b18a2cb355f30019cdfd6b146.tar.zst | |
Also use source ranks for nested attributes
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/components/node_page.rs | 9 |
1 files changed, 8 insertions, 1 deletions
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::<Tag>() { 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::<Tag>() { tr { + td { @tr(ri.lang, &format!("tag.{nkey}")) ": " @tr(ri.lang, &format!("tag.{nkey}.{key}")) } + td { @tr(ri.lang, &format!("tag.msrc.{source}")) } + }} + } } } } |