diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-18 20:52:23 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-18 20:52:23 +0100 |
| commit | da20590943b833abcce72bd6d6de475a83d5df07 (patch) | |
| tree | 2b19c858e605931352a35fb40a7af6fc9a661d42 /ui/src | |
| parent | e1b67c885d5789268cec53ac68479a329fba9c8f (diff) | |
| download | jellything-da20590943b833abcce72bd6d6de475a83d5df07.tar jellything-da20590943b833abcce72bd6d6de475a83d5df07.tar.bz2 jellything-da20590943b833abcce72bd6d6de475a83d5df07.tar.zst | |
reverse credits
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/components/node_list.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/components/node_list.rs b/ui/src/components/node_list.rs index 564d3be..d1d16fb 100644 --- a/ui/src/components/node_list.rs +++ b/ui/src/components/node_list.rs @@ -14,15 +14,15 @@ use jellyui_locale::tr; markup::define! { NodeList<'a>(ri: &'a RenderInfo<'a>, nl: Object<'a>) { @let ds = nl.get(NODELIST_DISPLAYSTYLE).unwrap_or(NLSTYLE_GRID); + @if let Some(title) = nl.get(NODELIST_TITLE) { + h2 { @tr(ri.lang, title) } + } @if ds == NLSTYLE_GRID { ul.nl.grid { @for nku in nl.iter(NODELIST_ITEM) { li { @NodeCard { ri, nku } } }} } @if ds == NLSTYLE_INLINE { - @if let Some(title) = nl.get(NODELIST_TITLE) { - h2 { @tr(ri.lang, title) } - } ul.nl.inline { @for nku in nl.iter(NODELIST_ITEM) { li { @NodeCard { ri, nku } } }} |