aboutsummaryrefslogtreecommitdiff
path: root/ui/src/components
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-21 03:46:30 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-21 03:46:30 +0100
commit356bc5fe6913e85b18a2cb355f30019cdfd6b146 (patch)
treeb6d2ea73498c04d740291c8670fff1ec81d1a886 /ui/src/components
parenta7e9d52efd1dba23a43f13d0eb9bb2236d1de74c (diff)
downloadjellything-356bc5fe6913e85b18a2cb355f30019cdfd6b146.tar
jellything-356bc5fe6913e85b18a2cb355f30019cdfd6b146.tar.bz2
jellything-356bc5fe6913e85b18a2cb355f30019cdfd6b146.tar.zst
Also use source ranks for nested attributes
Diffstat (limited to 'ui/src/components')
-rw-r--r--ui/src/components/node_page.rs9
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}")) }
+ }}
+ }
}
}
}