diff options
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 } } }} |